Skip to content

Commit a8613c5

Browse files
committed
Install tree for macos, too
1 parent db82190 commit a8613c5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,44 @@ jobs:
2424
uses: actions/setup-node@v1
2525
with:
2626
node-version: 14
27+
# Setup the environment for the tests
2728
- name: Ensure there is a supported ghc versions
2829
uses: haskell/actions/setup@v1
2930
with:
3031
ghc-version: ${{ matrix.ghc }}
32+
run: xvfb-run -s '-screen 0 640x480x16' -a npm test
33+
- name: "Install `tree` for MacOs"
34+
run: |
35+
brew update
36+
brew install tree
37+
if: runner.os == 'macOS'
3138
- run: |
3239
mkdir -p test-workspace/bin/
3340
export GHCUP_INSTALL_BASE_PREFIX=$(pwd)/test-workspace/bin
3441
echo $XDG_BIN_HOME $GHCUP_INSTALL_BASE_PREFIX
3542
ghcup --no-verbose prefetch hls 1.4.0
3643
ghcup --no-verbose prefetch hls latest
3744
shell: bash
45+
46+
# Install test dependencies
3847
- run: npm ci
3948
- run: npm run webpack
49+
50+
# Run the tests
4051
- run: xvfb-run -s '-screen 0 640x480x16' -a npm test
4152
if: runner.os == 'Linux'
4253
- run: npm test
4354
if: runner.os != 'Linux'
55+
56+
# Upload test artefacts
4457
- name: Upload log file to workflow artifacts on error
4558
if: failure()
4659
uses: actions/upload-artifact@v2
4760
with:
4861
name: extension-${{ matrix.os }}.log
4962
path: test-workspace/hls.log
63+
64+
# Create package artefacts
5065
- name: Delete test artefacts
5166
run: |
5267
tree -a test-workspace/

0 commit comments

Comments
 (0)