Skip to content

Commit 49c0e62

Browse files
committed
Upload test logs on failure
1 parent c372343 commit 49c0e62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,10 @@ jobs:
228228
- if: ${{ needs.pre_job.outputs.should_skip != 'true' && matrix.test}}
229229
name: Test hls-hlint-plugin test suite
230230
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"
231+
232+
- if: failure()
233+
name: Upload test logs
234+
uses: actions/upload-artifact@v2
235+
with:
236+
name: haskell-language-server-${{ runner.OS }}-${{ matrix.ghc }}
237+
path: test-logs

0 commit comments

Comments
 (0)