Skip to content

Commit

Permalink
chore(ci): ensure "just lint-scripts" exits with a non-zero status (#…
Browse files Browse the repository at this point in the history
…3026)

Unfortunately Just doesn't enable the "pipefail" option, so we need to
do it explicitly.
  • Loading branch information
alecthomas authored Oct 7, 2024
1 parent f5e9e4e commit 39b081d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ lint-backend:
@lint-commit-or-rollback ./backend/...

lint-scripts:
@shellcheck -f gcc -e SC2016 $(find scripts -type f -not -path scripts/tests) | to-annotation
#!/bin/bash
set -euo pipefail
shellcheck -f gcc -e SC2016 $(find scripts -type f -not -path scripts/tests) | to-annotation

# Run live docs server
docs:
Expand Down

0 comments on commit 39b081d

Please sign in to comment.