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

(cherry picked from commit 5ed2b6c08099f6f21021cbe740d76cd593292121)

.gitlab-ci.yml

index aba604b7c840b88a263707238f5a414894f711b4..3757a7fc4f89e2f39b2d6024e8f82a5537926103 100644 (file)
@@ -617,6 +617,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: []