]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add a check for defined but never used anchors in .gitlab-ci.yaml
authorŠtěpán Balážik <stepan@isc.org>
Thu, 26 Jun 2025 14:15:45 +0000 (16:15 +0200)
committerŠtěpán Balážik <stepan@isc.org>
Fri, 27 Jun 2025 16:43:56 +0000 (16:43 +0000)
If a anchor is ever orphaned, this will fail in CI.

(cherry picked from commit 5ed2b6c08099f6f21021cbe740d76cd593292121)

.gitlab-ci.yml

index a9869db2dfbe75e70a4f4b32ab5baacdf56038bb..ec204ca02a0b5a0754aba5228bbc9d22d5243a7d 100644 (file)
@@ -609,6 +609,16 @@ ci-variables:
     reports:
       dotenv: ci_vars.env
 
+ci-orphaned-anchors:
+  <<: *precheck_job
+  script:
+    - git clone --depth 1 https://gitlab.isc.org/isc-projects/bind9-qa.git
+    - bind9-qa/ci-orphaned-anchors/check-orphaned-anchors-ci.py .gitlab-ci.yml
+  needs: []
+  rules:
+    - changes:
+        - .gitlab-ci.yml
+
 clang-format:
   <<: *precheck_job
   needs: []