Skip to content

Commit a2c255d

Browse files
committed
ci: merges unittesting and coverage
Drops CI testing for node 16.x
1 parent 3a0bd6d commit a2c255d

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

.github/workflows/main.yaml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ name: CI
22
on: [push, pull_request]
33
jobs:
44
tests:
5-
runs-on: ubuntu-latest
65
strategy:
76
matrix:
8-
node-version: [16.x, 18.x]
7+
os: [ubuntu-latest]
8+
node-version: [18.x]
99
fail-fast: false
10+
runs-on: ${{ matrix.os }}
1011
steps:
1112
- uses: actions/checkout@v3
1213
- name: Use Node.js ${{ matrix.node-version }}
@@ -24,30 +25,12 @@ jobs:
2425
- name: Test Unittests
2526
uses: GabrielBB/xvfb-action@v1
2627
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
4630
- name: Coverage report
4731
uses: GabrielBB/xvfb-action@v1
4832
with:
4933
run: npm run coverage
50-
5134
- name: Upload coverage to Codecov
5235
uses: codecov/codecov-action@v3
5336
with:

0 commit comments

Comments
 (0)