Skip to content

Commit 22885c3

Browse files
committed
ci(workflow): add test & lint checks
1 parent 9e0f221 commit 22885c3

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/lint-and-test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Lint & Test
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
410

511
jobs:
612
lint:
@@ -18,11 +24,18 @@ jobs:
1824
runs-on: ubuntu-latest
1925
strategy:
2026
matrix:
21-
node: ["10.x", "12.x"]
27+
node:
28+
- 10.x
29+
- 12.x
2230
steps:
2331
- uses: actions/checkout@v2
2432
- uses: actions/setup-node@v1
2533
with:
2634
node-version: ${{ matrix.node }}
2735
- run: npm install
2836
- run: npm test
37+
38+
- uses: actions/upload-artifact@v2
39+
with:
40+
name: Test Reports
41+
path: ${{ github.workspace }}/test-reports/**/*

0 commit comments

Comments
 (0)