Skip to content

Commit 8016d8a

Browse files
committed
moved ci to its own workflow
1 parent 433872a commit 8016d8a

File tree

2 files changed

+85
-78
lines changed

2 files changed

+85
-78
lines changed

.github/workflows/ci.yaml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: "Test"
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- 'v*'
8+
env:
9+
node_version: "12.x"
10+
11+
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: yarn install
23+
run: yarn install
24+
25+
- name: yarn build
26+
run: yarn build
27+
28+
- name: yarn run pack
29+
run: yarn 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: yarn audit
43+
run: yarn audit --level critical [[ $? -ge 16 ]] && exit 1 || exit 0 # this last part is needed because yarn audit returns a non-0 code if any vulnerabilities are found
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: yarn install
57+
run: yarn install
58+
59+
- name: yarn lint
60+
run: yarn run lint
61+
62+
test:
63+
name: Test
64+
runs-on: ubuntu-latest
65+
steps:
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: yarn install
74+
run: yarn install
75+
76+
- name: yarn test
77+
run: yarn test

.github/workflows/test.yml

Lines changed: 8 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,11 @@
1-
name: "Test"
2-
on:
3-
pull_request:
4-
push:
5-
branches:
6-
- master
7-
- 'v*'
8-
env:
9-
node_version: "12.x"
10-
11-
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: yarn install
23-
run: yarn install
24-
25-
- name: yarn build
26-
run: yarn build
27-
28-
- name: yarn run pack
29-
run: yarn 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: yarn audit
43-
run: yarn audit --level critical [[ $? -ge 16 ]] && exit 1 || exit 0 # this last part is needed because yarn audit returns a non-0 code if any vulnerabilities are found
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: yarn install
57-
run: yarn install
58-
59-
- name: yarn lint
60-
run: yarn run lint
61-
62-
test:
63-
name: Test
64-
runs-on: ubuntu-latest
65-
steps:
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: yarn install
74-
run: yarn install
75-
76-
- name: yarn test
77-
run: yarn test
78-
1+
name: "Test"
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
- 'v*'
7+
8+
#jobs:
799
# test:
8010
# name: Test
8111
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)