Skip to content

Commit

Permalink
Updates workflow and build script
Browse files Browse the repository at this point in the history
Updates workflow to use actions that use Node.js 20

Updates build script to fail the build on CI if stack attempts to write
a new lock file.
  • Loading branch information
onslaughtq committed Jun 14, 2024
1 parent 8991985 commit 88ceb73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v4

- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-version: v1
with:
Expand Down
10 changes: 9 additions & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ 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 88ceb73

Please sign in to comment.