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:
parent
4cb8b13987
commit
b6505ff573
@ -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: []
|
||||
|
Loading…
x
Reference in New Issue
Block a user