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

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: []