]> 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:04:22 +0000 (16:04 +0000)
If a anchor is ever orphaned, this will fail in CI.

.gitlab-ci.yml

index d4aa6d31b348ac4f0dfffb30cd8f5a45ab5d37a6..7d9c13bad6aa9578e3a73b591738081ed6ba33d0 100644 (file)
@@ -559,6 +559,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: []