File tree 1 file changed +50
-4
lines changed
1 file changed +50
-4
lines changed Original file line number Diff line number Diff line change 43
43
if : steps.cache-yarn.outputs.cache-hit != 'true'
44
44
run : yarn --frozen-lockfile
45
45
46
- - name : Audit for vulnerabilities
47
- run : yarn _audit
48
- if : success()
49
-
50
46
- name : Run yarn fmt
51
47
run : yarn fmt
52
48
if : success()
@@ -59,10 +55,60 @@ jobs:
59
55
run : yarn test:unit
60
56
if : success()
61
57
58
+ codecov :
59
+ name : Upload coverage report to Codecov
60
+ runs-on : ubuntu-latest
61
+ steps :
62
+ - name : Checkout repo
63
+ uses : actions/checkout@v2
64
+
65
+ - name : Install Node.js v12
66
+ uses : actions/setup-node@v2
67
+ with :
68
+ node-version : " 12"
69
+
70
+ - name : Fetch dependencies from cache
71
+ id : cache-yarn
72
+ uses : actions/cache@v2
73
+ with :
74
+ path : " **/node_modules"
75
+ key : yarn-build-${{ hashFiles('**/yarn.lock') }}
76
+
77
+ - name : Install dependencies
78
+ if : steps.cache-yarn.outputs.cache-hit != 'true'
79
+ run : yarn --frozen-lockfile
80
+
62
81
- name : Upload coverage report to Codecov
63
82
run : yarn coverage
64
83
if : success()
65
84
85
+ audit-ci :
86
+ name : Run audit-ci
87
+ runs-on : ubuntu-latest
88
+ steps :
89
+ - name : Checkout repo
90
+ uses : actions/checkout@v2
91
+
92
+ - name : Install Node.js v12
93
+ uses : actions/setup-node@v2
94
+ with :
95
+ node-version : " 12"
96
+
97
+ - name : Fetch dependencies from cache
98
+ id : cache-yarn
99
+ uses : actions/cache@v2
100
+ with :
101
+ path : " **/node_modules"
102
+ key : yarn-build-${{ hashFiles('**/yarn.lock') }}
103
+
104
+ - name : Install dependencies
105
+ if : steps.cache-yarn.outputs.cache-hit != 'true'
106
+ run : yarn --frozen-lockfile
107
+
108
+ - name : Audit for vulnerabilities
109
+ run : yarn _audit
110
+ if : success()
111
+
66
112
build :
67
113
name : Build
68
114
needs : prebuild
You can’t perform that action at this time.
0 commit comments