Skip to content

Commit d758ce4

Browse files
committed
Separate test and spec on CI.
1 parent d025843 commit d758ce4

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

.github/workflows/ci.yml

+26-5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
test:
77
runs-on: ubuntu-latest
88
strategy:
9+
fail-fast: false
910
matrix:
1011
node-version:
1112
- 12.x
@@ -23,10 +24,6 @@ jobs:
2324
- run: npm run build
2425
- run: npm run lint
2526
- run: npm run test
26-
- run: npm run spec-turtle
27-
- run: npm run spec-ntriples
28-
- run: npm run spec-nquads
29-
- run: npm run spec-trig
3027
- run: npx nyc report --reporter=text-lcov > lcov.info
3128
- uses: coverallsapp/github-action@master
3229
with:
@@ -35,6 +32,29 @@ jobs:
3532
parallel: true
3633
path-to-lcov: lcov.info
3734

35+
spec:
36+
runs-on: ubuntu-latest
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
node-version:
41+
- 12.x
42+
- 14.x
43+
- 16.x
44+
- 18.x
45+
- 20.x
46+
steps:
47+
- name: Use Node.js ${{ matrix.node-version }}
48+
uses: actions/setup-node@v2
49+
with:
50+
node-version: ${{ matrix.node-version }}
51+
- uses: actions/checkout@v2
52+
- run: npm ci
53+
- run: npm run spec-turtle
54+
- run: npm run spec-ntriples
55+
- run: npm run spec-nquads
56+
- run: npm run spec-trig
57+
3858
coveralls:
3959
needs: test
4060
runs-on: ubuntu-latest
@@ -64,8 +84,9 @@ jobs:
6484

6585
gh-pages:
6686
needs:
67-
- docs
6887
- test
88+
- spec
89+
- docs
6990
runs-on: ubuntu-latest
7091
if: startsWith(github.ref, 'refs/tags/v')
7192
steps:

0 commit comments

Comments
 (0)