Skip to content

Commit 11c62bb

Browse files
committed
Upload test logs on failure
1 parent 387810f commit 11c62bb

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
@@ -219,3 +219,10 @@ jobs:
219219
- if: ${{ needs.pre_job.outputs.should_skip != 'true' && matrix.test}}
220220
name: Test hls-hlint-plugin test suite
221221
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"
222+
223+
- if: failure()
224+
name: Upload test logs
225+
uses: actions/upload-artifact@v2
226+
with:
227+
name: haskell-language-server-${{ runner.OS }}-${{ matrix.ghc }}
228+
path: test-logs

0 commit comments

Comments
 (0)