1
0
mirror of https://gitlab.isc.org/isc-projects/bind9.git synced 2025-04-18 09:44:09 +03:00

Run shfmt in CI

Ensure our shell script format stays consistent in the future.
This commit is contained in:
Tom Krizek 2023-10-24 14:56:06 +02:00
parent 4cb8b13987
commit b6505ff573
No known key found for this signature in database
GPG Key ID: 01623B9B652A20A7

View File

@ -599,6 +599,19 @@ reuse:
script:
- reuse lint
shfmt:
<<: *precheck_job
needs: []
script:
- shfmt -w -i 2 -ci -bn . $(find . -name "*.sh.in")
- git diff > shfmt.patch
- if test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; exit 1; fi
artifacts:
paths:
- shfmt.patch
expire_in: "1 week"
when: on_failure
danger:
<<: *precheck_job
needs: []