Skip to content

Commit

Permalink
Separate test and spec on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVerborgh committed Aug 10, 2023
1 parent d025843 commit d758ce4
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 12.x
Expand All @@ -23,10 +24,6 @@ jobs:
- run: npm run build
- run: npm run lint
- run: npm run test
- run: npm run spec-turtle
- run: npm run spec-ntriples
- run: npm run spec-nquads
- run: npm run spec-trig
- run: npx nyc report --reporter=text-lcov > lcov.info
- uses: coverallsapp/github-action@master
with:
Expand All @@ -35,6 +32,29 @@ jobs:
parallel: true
path-to-lcov: lcov.info

spec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 12.x
- 14.x
- 16.x
- 18.x
- 20.x
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v2
- run: npm ci
- run: npm run spec-turtle
- run: npm run spec-ntriples
- run: npm run spec-nquads
- run: npm run spec-trig

coveralls:
needs: test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -64,8 +84,9 @@ jobs:

gh-pages:
needs:
- docs
- test
- spec
- docs
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
Expand Down

0 comments on commit d758ce4

Please sign in to comment.