File tree Expand file tree Collapse file tree 1 file changed +5
-22
lines changed Expand file tree Collapse file tree 1 file changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ name: CI
2
2
on : [push, pull_request]
3
3
jobs :
4
4
tests :
5
- runs-on : ubuntu-latest
6
5
strategy :
7
6
matrix :
8
- node-version : [16.x, 18.x]
7
+ os : [ubuntu-latest]
8
+ node-version : [18.x]
9
9
fail-fast : false
10
+ runs-on : ${{ matrix.os }}
10
11
steps :
11
12
- uses : actions/checkout@v3
12
13
- name : Use Node.js ${{ matrix.node-version }}
@@ -24,30 +25,12 @@ jobs:
24
25
- name : Test Unittests
25
26
uses : GabrielBB/xvfb-action@v1
26
27
with :
27
- run : npm test
28
-
29
- coverage :
30
- strategy :
31
- matrix :
32
- os : [ubuntu-latest]
33
- node-version : [18.x]
34
- fail-fast : false
35
- runs-on : ${{ matrix.os }}
36
- steps :
37
- - uses : actions/checkout@v3
38
- - name : Use Node.js ${{ matrix.node-version }}
39
- uses : actions/setup-node@v3
40
- with :
41
- node-version : ${{ matrix.node-version }}
42
-
43
- - name : Installing Extension
44
- run : npm ci
45
-
28
+ run : npm run test
29
+ # This will not fail the job if tests fail so we have to npm test separately
46
30
- name : Coverage report
47
31
uses : GabrielBB/xvfb-action@v1
48
32
with :
49
33
run : npm run coverage
50
-
51
34
- name : Upload coverage to Codecov
52
35
uses : codecov/codecov-action@v3
53
36
with :
You can’t perform that action at this time.
0 commit comments