Skip to content

Commit a61f042

Browse files
committed
Add tests on compatible node versions
1 parent 132e0fc commit a61f042

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,21 @@ on:
1111

1212
jobs:
1313
tests:
14-
name: tests
1514
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node: [ '12', '14' ]
18+
name: Tests (Node.js ${{ matrix.node }})
1619
steps:
17-
- uses: actions/checkout@v2
18-
- name: Install dependencies
19-
run: yarn install
20-
- name: Run tests
21-
run: yarn run test
20+
- uses: actions/checkout@v2
21+
- name: Setup node
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node }}
25+
- name: Install dependencies
26+
run: yarn install
27+
- name: Run tests
28+
run: yarn run test
2229

2330
linter:
2431
name: linter-check

bors.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
status = ['tests', 'linter-check']
1+
status = [
2+
'tests',
3+
'linter-check',
4+
'Tests (Node.js 12)',
5+
'Tests (Node.js 14)'
6+
]
27
# 1 hour timeout
38
timeout-sec = 3600

0 commit comments

Comments
 (0)