Skip to content

Commit ed47c2b

Browse files
committedOct 6, 2021
chore: add test workflow
1 parent f564bb7 commit ed47c2b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
 

‎.github/workflows/test.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test
2+
"on":
3+
push:
4+
branches:
5+
- main
6+
- dependabot/**
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
12+
jobs:
13+
test_matrix:
14+
strategy:
15+
matrix:
16+
node-version:
17+
- 14.17
18+
- 16
19+
os:
20+
- ubuntu-latest
21+
runs-on: "${{ matrix.os }}"
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: "Use Node.js ${{ matrix.node-version }}"
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: "${{ matrix.node-version }}"
28+
cache: npm
29+
- run: npm ci
30+
- run: "npm run test --ci"

0 commit comments

Comments
 (0)