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 with 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 a4e0f0f commit 486e51c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-version: v3
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 486e51c

Please sign in to comment.