Skip to content

Commit ddacbce

Browse files
authored
Fix rerun log handling (#2450)
1 parent ccf9d04 commit ddacbce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ jobs:
138138

139139
- name: Set test options
140140
run: |
141-
echo "TEST_OPTS=-j1 --rerun-update --rerun-filter failures,exceptions,new" >> $GITHUB_ENV
141+
echo "TEST_OPTS=-j1 --rerun-update --rerun-filter failures,exceptions" >> $GITHUB_ENV
142142
143143
- name: Cache test log bewteen attempts of the same run
144144
uses: actions/cache@v2
145145
env:
146146
cache-name: cache-test-log
147147
with:
148-
path: .tasty-rerun-log
148+
path: "**/.tasty-rerun-log*"
149149
key: v1-${{ runner.os }}-${{ matrix.ghc }}-test-log-${{ github.sha }}
150150

151151
- if: needs.pre_job.outputs.should_skip_ghcide != 'true' && matrix.test
@@ -172,7 +172,7 @@ jobs:
172172
# all functional test cases simultaneously which causes way too many hls
173173
# instances to be spun up for the poor github actions runner to handle
174174

175-
run: cabal test wrapper-test --test-options="$TEST_OPTS" || cabal test wrapper-test --test-options="$TEST_OPTS" || cabal test wrapper-test --test-options="$TEST_OPTS"
175+
run: cabal test wrapper-test --test-options="$TEST_OPTS --rerun-log-file .tasty-rerun-log-wrapper" || cabal test wrapper-test --test-options="$TEST_OPTS --rerun-log-file .tasty-rerun-log-wrapper" || cabal test wrapper-test --test-options="$TEST_OPTS --rerun-log-file .tasty-rerun-log-wrapper"
176176

177177
- if: matrix.test && matrix.ghc != '9.0.1'
178178
name: Test hls-brittany-plugin

0 commit comments

Comments
 (0)