File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -24,29 +24,44 @@ jobs:
24
24
uses : actions/setup-node@v1
25
25
with :
26
26
node-version : 14
27
+ # Setup the environment for the tests
27
28
- name : Ensure there is a supported ghc versions
28
29
uses : haskell/actions/setup@v1
29
30
with :
30
31
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'
31
38
- run : |
32
39
mkdir -p test-workspace/bin/
33
40
export GHCUP_INSTALL_BASE_PREFIX=$(pwd)/test-workspace/bin
34
41
echo $XDG_BIN_HOME $GHCUP_INSTALL_BASE_PREFIX
35
42
ghcup --no-verbose prefetch hls 1.4.0
36
43
ghcup --no-verbose prefetch hls latest
37
44
shell: bash
45
+
46
+ # Install test dependencies
38
47
- run : npm ci
39
48
- run : npm run webpack
49
+
50
+ # Run the tests
40
51
- run : xvfb-run -s '-screen 0 640x480x16' -a npm test
41
52
if : runner.os == 'Linux'
42
53
- run : npm test
43
54
if : runner.os != 'Linux'
55
+
56
+ # Upload test artefacts
44
57
- name : Upload log file to workflow artifacts on error
45
58
if : failure()
46
59
uses : actions/upload-artifact@v2
47
60
with :
48
61
name : extension-${{ matrix.os }}.log
49
62
path : test-workspace/hls.log
63
+
64
+ # Create package artefacts
50
65
- name : Delete test artefacts
51
66
run : |
52
67
tree -a test-workspace/
You can’t perform that action at this time.
0 commit comments