From 89d24af61a90115fbb0920862eaa37dc36b30acf Mon Sep 17 00:00:00 2001 From: jneira Date: Tue, 7 Dec 2021 16:48:20 +0100 Subject: [PATCH] Fix rerun log handling --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 17180f0fc0..82b667bc47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -138,14 +138,14 @@ jobs: - name: Set test options run: | - echo "TEST_OPTS=-j1 --rerun-update --rerun-filter failures,exceptions,new" >> $GITHUB_ENV + echo "TEST_OPTS=-j1 --rerun-update --rerun-filter failures,exceptions" >> $GITHUB_ENV - name: Cache test log bewteen attempts of the same run uses: actions/cache@v2 env: cache-name: cache-test-log with: - path: .tasty-rerun-log + path: "**/.tasty-rerun-log*" key: v1-${{ runner.os }}-${{ matrix.ghc }}-test-log-${{ github.sha }} - if: needs.pre_job.outputs.should_skip_ghcide != 'true' && matrix.test @@ -172,7 +172,7 @@ jobs: # all functional test cases simultaneously which causes way too many hls # instances to be spun up for the poor github actions runner to handle - 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" + 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" - if: matrix.test && matrix.ghc != '9.0.1' name: Test hls-brittany-plugin