Skip to content

Commit 998bc02

Browse files
committed
added more ci tests
1 parent 1898def commit 998bc02

File tree

1 file changed

+72
-1
lines changed

1 file changed

+72
-1
lines changed

.github/workflows/test.yml

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,86 @@
11
name: "Test"
22
on:
3+
pull_request:
34
push:
45
branches:
56
- master
7+
- 'v*'
8+
env:
9+
node_version: "12.x"
610

711
jobs:
12+
build: # make sure build/ci work properly
13+
name: Build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ env.node_version }}
21+
22+
- name: npm install
23+
run: npm install
24+
25+
- name: npm build
26+
run: npm build
27+
28+
- name: npm run pack
29+
run: npm run pack
30+
31+
audit:
32+
name: Audit
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
37+
- name: Set up Node.js
38+
uses: actions/setup-node@v1
39+
with:
40+
node-version: ${{ env.node_version }}
41+
42+
- name: npm audit
43+
run: npm audit --audit-level=critical
44+
45+
lint:
46+
name: Lint
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v2
50+
51+
- name: Set up Node.js
52+
uses: actions/setup-node@v1
53+
with:
54+
node-version: ${{ env.node_version }}
55+
56+
- name: npm install
57+
run: npm install
58+
59+
- name: npm lint
60+
run: npm lint
61+
862
test:
963
name: Test
1064
runs-on: ubuntu-latest
1165
steps:
12-
- uses: actions/checkout@v1
66+
- uses: actions/checkout@v2
67+
68+
- name: Set up Node.js
69+
uses: actions/setup-node@v1
70+
with:
71+
node-version: ${{ env.node_version }}
72+
73+
- name: npm install
74+
run: npm install
75+
76+
- name: npm test
77+
run: npm test
78+
79+
# test:
80+
# name: Test
81+
# runs-on: ubuntu-latest
82+
# steps:
83+
# - uses: actions/checkout@v1
1384
# - name: CodeDeploy
1485
# uses: ./
1586
# with:

0 commit comments

Comments
 (0)