Skip to content

Commit 6cb348d

Browse files
committed
Improve tests
1 parent e4a2003 commit 6cb348d

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,30 @@
33

44
name: Tests
55

6-
on:
7-
push:
8-
branches: [ master, develop ]
9-
pull_request:
10-
branches: [ master, develop ]
6+
on: [ push, pull_request ]
117

128
jobs:
139
test:
14-
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
os:
13+
- ubuntu
14+
- windows
15+
- macos
16+
node:
17+
- 10
18+
- 12
19+
- 14
20+
21+
runs-on: ${{ matrix.os }}-latest
22+
name: ${{ matrix.os }} (Node v${{ matrix.node }})
23+
1524
steps:
1625
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v1
26+
- name: Setup node
27+
uses: actions/setup-node@v1
1828
with:
19-
node-version: 12
29+
node-version: ${{ matrix.node }}
2030
registry-url: https://registry.npmjs.org/
2131
- run: npm ci
2232
- run: npm run build

0 commit comments

Comments
 (0)