Skip to content

Commit f80bc35

Browse files
committed
chore: cleanup test workflow
1 parent e510018 commit f80bc35

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,43 @@ on:
44
branches:
55
- master
66
pull_request:
7-
types: [opened, synchronize]
7+
types: [opened, synchronize, reopened]
88

99
jobs:
1010
test:
11+
name: Run tests on Node.js ${{ matrix.node-version }}
1112
runs-on: ubuntu-latest
1213
strategy:
1314
matrix:
14-
node_version: [8, 10, 12]
15+
node-version: [8, 10, 12]
1516

1617
steps:
17-
- uses: actions/checkout@v4
18-
- name: Use Node.js ${{ matrix.node_version }}
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
1922
uses: actions/setup-node@v4
2023
with:
21-
node-version: ${{ matrix.node_version }}
22-
- name: Install
24+
node-version: ${{ matrix.node-version }}
25+
26+
- name: Install dependencies
2327
run: npm ci
24-
- name: Test
28+
29+
- name: Run tests
2530
run: npm test
2631

32+
- name: Collect coverage
33+
uses: coverallsapp/github-action@v2
34+
with:
35+
flag-name: run-${{ join(matrix.*, '-') }}
36+
parallel: true
37+
2738
coverage:
39+
name: Publish coverage
2840
needs: test
2941
runs-on: ubuntu-latest
3042
steps:
31-
- uses: coverallsapp/[email protected]
43+
- name: Publish coverage
44+
uses: coverallsapp/github-action@v2
3245
with:
33-
github-token: ${{ secrets.GITHUB_TOKEN }}
3446
parallel-finished: true

0 commit comments

Comments
 (0)