Skip to content

Commit

Permalink
chore: only collect coverage on latest Node.js version
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Koops <[email protected]>
  • Loading branch information
jonkoops authored and rolandjitsu committed Nov 11, 2024
1 parent 73f0900 commit b4e69bf
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,13 @@ jobs:
run: npm ci

- name: Run tests
if: matrix.node-version != 22
run: npm test -- --coverage

- name: Collect coverage
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
- name: Run tests with coverage
if: matrix.node-version == 22
run: npm test -- --coverage

coverage:
name: Publish coverage
needs: test
runs-on: ubuntu-latest
steps:
- name: Publish coverage
- name: Collect coverage
if: matrix.node-version == 22
uses: coverallsapp/github-action@v2
with:
parallel-finished: true

0 comments on commit b4e69bf

Please sign in to comment.