Skip to content

Commit b4e69bf

Browse files
jonkoopsrolandjitsu
authored andcommitted
chore: only collect coverage on latest Node.js version
Signed-off-by: Jon Koops <[email protected]>
1 parent 73f0900 commit b4e69bf

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,13 @@ jobs:
7171
run: npm ci
7272

7373
- name: Run tests
74+
if: matrix.node-version != 22
7475
run: npm test -- --coverage
7576

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

82-
coverage:
83-
name: Publish coverage
84-
needs: test
85-
runs-on: ubuntu-latest
86-
steps:
87-
- name: Publish coverage
81+
- name: Collect coverage
82+
if: matrix.node-version == 22
8883
uses: coverallsapp/github-action@v2
89-
with:
90-
parallel-finished: true

0 commit comments

Comments
 (0)