Skip to content

Commit

Permalink
Upload test logs on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jneira committed Oct 27, 2021
1 parent c372343 commit 49c0e62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,10 @@ jobs:
- if: ${{ needs.pre_job.outputs.should_skip != 'true' && matrix.test}}
name: Test hls-hlint-plugin test suite
run: cabal test hls-hlint-plugin --test-options="-j1 --rerun-update" || cabal test hls-hlint-plugin --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-hlint-plugin --test-options="-j1 --rerun"

- if: failure()
name: Upload test logs
uses: actions/upload-artifact@v2
with:
name: haskell-language-server-${{ runner.OS }}-${{ matrix.ghc }}
path: test-logs

0 comments on commit 49c0e62

Please # to comment.