Skip to content

Commit 4a92843

Browse files
committed
chore: clean up test workflow
Signed-off-by: Jon Koops <[email protected]>
1 parent 7e3cef5 commit 4a92843

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,47 @@ on:
55
- master
66
- "[0-9]+.[0-9]+.x"
77
pull_request:
8-
types: [opened, synchronize]
98

109
jobs:
1110
test:
11+
name: Run tests
1212
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
node_version: [14, 16, 18, 20, 22]
16+
node-version: [14, 16, 18, 20, 22]
1717

1818
steps:
19-
- uses: actions/checkout@v2
20-
- name: Use Node.js ${{ matrix.node_version }}
21-
uses: actions/setup-node@v1
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
2224
with:
23-
node-version: ${{ matrix.node_version }}
25+
node-version: ${{ matrix.node-version }}
2426

2527
- name: Install compatible NPM version
26-
if: matrix.node_version == 14
28+
if: matrix.node-version == 14
2729
run: npm install -g npm@^9
2830

29-
- name: Install
31+
- name: Install dependencies
3032
run: npm ci
31-
- name: Test
33+
34+
- name: Run tests
3235
run: npm run test:cov
33-
- uses: coverallsapp/[email protected]
36+
37+
- name: Collect coverage
38+
uses: coverallsapp/github-action@v2
3439
with:
35-
github-token: ${{ secrets.GITHUB_TOKEN }}
40+
flag-name: run-${{ join(matrix.*, '-') }}
3641
parallel: true
3742

3843
coverage:
44+
name: Finish coverage
3945
needs: test
4046
runs-on: ubuntu-latest
4147
steps:
42-
- uses: coverallsapp/[email protected]
48+
- name: Finish coverage
49+
uses: coverallsapp/github-action@v2
4350
with:
44-
github-token: ${{ secrets.GITHUB_TOKEN }}
4551
parallel-finished: true

0 commit comments

Comments
 (0)