Skip to content

Commit

Permalink
Output GHC logs on failure on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardSergeev committed Sep 21, 2020
1 parent abf2f1c commit 5d53fd8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,19 @@ jobs:
with:
run: npm test

- name: Add GHC extension output (on failure)
- name: Add GHC extension output (on failure on Linux)
if: failure() && runner.os == 'Linux'
run: find ~/.config/Code/logs -name *GHC* -exec cat {} \;

- name: Setup WSL on Windows
uses: Vampire/setup-wsl@v1
if: runner.os == 'Windows'

- name: Add GHC extension output (on failure on Windows)
shell: wsl-bash
if: runner.os == 'Windows'
run: find ~/.config/Code/logs -name *GHC* -exec cat {} \;

metrics:
runs-on: ubuntu-latest
env: { CODE_VERSION: 1.48.0, DISPLAY: ':99.0' }
Expand Down

0 comments on commit 5d53fd8

Please sign in to comment.