Skip to content

Commit

Permalink
Updates to workflow and build scripts
Browse files Browse the repository at this point in the history
Updates actions in github workflow to remove deprecation warnings about
Node 16.

Updates build-lib script so that CI will fail the build if stack
attempts to write a new lock file.
  • Loading branch information
onslaughtq committed Jun 14, 2024
1 parent 9da0833 commit ee64dc4
Show file tree
Hide file tree
Showing 2 changed files with 15 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
14 changes: 13 additions & 1 deletion scripts/build-lib
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,16 @@ set -e

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

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

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

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

0 comments on commit ee64dc4

Please sign in to comment.