Skip to content

Commit 42ad3e9

Browse files
save the cache earlier to try to get faster tests
1 parent 88c73d1 commit 42ad3e9

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,20 @@ jobs:
7676
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
7777
run: |
7878
set -ex
79-
[ -n "${COVERALLS_REPO_TOKEN}" ]
8079
stack test --coverage
8180
stack hpc report constrained-generators
81+
82+
- uses: actions/cache/save@v4
83+
with:
84+
path: |
85+
${{ steps.setup-haskell-stack.outputs.stack-root }}
86+
.stack-work
87+
key: ${{ runner.os }}-lts-24-${{ github.sha }}
88+
89+
- name: Upload coverage report
90+
env:
91+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
92+
run: |
93+
[ -n "${COVERALLS_REPO_TOKEN}" ]
8294
curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.7.0/shc-Linux-X64.tar.bz2 | tar xj shc
83-
./shc --repo-token="$COVERALLS_REPO_TOKEN" --partial-coverage --fetch-coverage combined constrained-generators
95+
./shc --repo-token="$COVERALLS_REPO_TOKEN" --partial-coverage --fetch-coverage combined custom

0 commit comments

Comments
 (0)