Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 60e83a5

Browse files
committed
Test PRs in as well.
1 parent 30c16f6 commit 60e83a5

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
name: Tests
2-
'on':
1+
name: Node.js CI
2+
3+
on:
34
push:
4-
branches:
5-
- master
5+
branches: [master]
66
pull_request:
7-
branches:
8-
- master
7+
branches: [master]
98

109
jobs:
1110
test:
12-
name: 'Node.js v${{ matrix.node }}'
1311
runs-on: ubuntu-latest
12+
1413
strategy:
1514
matrix:
16-
node:
17-
- 16
18-
- 17
15+
node-version: [14.x, 16.x, 18.x]
16+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
17+
1918
steps:
20-
- uses: actions/setup-node@v3.4.1
21-
with:
22-
node-version: '${{ matrix.node }}'
2319
- uses: actions/checkout@v3
24-
- name: Install Dependencies
25-
run: npm ci
26-
- name: Run All Node.js Tests
27-
run: npm test
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: "npm"
25+
- run: npm ci
26+
- run: npm run build
27+
- run: npm run test
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)