You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: .github/workflows/test.yml
+8-78Lines changed: 8 additions & 78 deletions
Original file line number
Diff line number
Diff 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
0 commit comments