Skip to content

Commit

Permalink
Fails CI build if stack attempts to write a new lock file
Browse files Browse the repository at this point in the history
The CI build will now fail if stack attempts to write a new lock file.
  • Loading branch information
onslaughtq committed Jun 14, 2024
1 parent 561e222 commit ccdf3e5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ set -e

source scripts/lib/run-in-container.sh

STACK_OPTIONS=""

if [ "$CI" ]; then
STACK_OPTIONS="--lock-file error-on-write"
else
STACK_OPTIONS="--fast"
fi


stack \
build \
--test \
--fast \
$STACK_OPTIONS \
"$@"

0 comments on commit ccdf3e5

Please sign in to comment.