Skip to content

Commit 0395589

Browse files
authored
chore: migrate to jest (#366)
* chore: migrate to jest * chore: dont test on deprecated node 12 * chore: only trigger tests on push * chore: collect code coverage in jest * chore: remove separate coveralls job * chore: remove unused test dependencies * chore: add .x to CI
1 parent e8a0302 commit 0395589

20 files changed

+16842
-11200
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on: [push]
44

55
jobs:
66
test:
77
runs-on: ubuntu-latest
88
strategy:
99
fail-fast: false
1010
matrix:
11-
node-version:
12-
- 12.x
13-
- 14.x
14-
- 16.x
15-
- 18.x
16-
- 20.x
11+
node-version: [14.x, 16.x, 18.x, 20.x]
1712
steps:
1813
- name: Use Node.js ${{ matrix.node-version }}
1914
uses: actions/setup-node@v2
@@ -24,25 +19,13 @@ jobs:
2419
- run: npm run build
2520
- run: npm run lint
2621
- run: npm run test
27-
- run: npx nyc report --reporter=text-lcov > lcov.info
28-
- uses: coverallsapp/github-action@master
29-
with:
30-
github-token: ${{ secrets.github_token }}
31-
flag-name: run-${{ matrix.node-version }}
32-
parallel: true
33-
path-to-lcov: lcov.info
3422

3523
spec:
3624
runs-on: ubuntu-latest
3725
strategy:
3826
fail-fast: false
3927
matrix:
40-
node-version:
41-
- 12.x
42-
- 14.x
43-
- 16.x
44-
- 18.x
45-
- 20.x
28+
node-version: [12.x, 14.x, 16.x, 18.x, 20.x]
4629
steps:
4730
- name: Use Node.js ${{ matrix.node-version }}
4831
uses: actions/setup-node@v2
@@ -55,16 +38,6 @@ jobs:
5538
- run: npm run spec-nquads
5639
- run: npm run spec-trig
5740

58-
coveralls:
59-
needs: test
60-
runs-on: ubuntu-latest
61-
steps:
62-
- name: Consolidate test coverage from different jobs
63-
uses: coverallsapp/github-action@master
64-
with:
65-
github-token: ${{ secrets.github_token }}
66-
parallel-finished: true
67-
6841
docs:
6942
runs-on: ubuntu-latest
7043
steps:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ browser
55
docs
66
lib
77
node_modules
8+
coverage

0 commit comments

Comments
 (0)