diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2b99760..bea892f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/scripts/test b/scripts/test index b6c3b11..503ba33 100755 --- a/scripts/test +++ b/scripts/test @@ -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 \ "$@"