File tree 1 file changed +17
-9
lines changed
1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,28 @@ on: [push]
3
3
jobs :
4
4
run :
5
5
name : Run
6
- runs-on : ${{ matrix.os }}
7
- strategy :
8
- matrix :
9
- os : [ubuntu-latest]
6
+ runs-on : ubuntu-latest
7
+
10
8
steps :
11
- - uses : actions/checkout@master
9
+ - uses : actions/checkout@v2
10
+ - uses : actions/setup-node@v2
11
+ with :
12
+ node-version : ' 14'
13
+
14
+ - name : Get yarn cache directory path
15
+ id : yarn-cache-dir-path
16
+ run : echo "::set-output name=dir::$(yarn cache dir)"
12
17
13
- - name : Set Node.js 12.x
14
- uses : actions/setup-node@v1
18
+ - uses : actions/cache@v2
19
+ id : yarn-cache
15
20
with :
16
- version : 12.x
21
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
22
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
23
+ restore-keys : |
24
+ ${{ runner.os }}-yarn-
17
25
18
26
- name : Install
19
- run : yarn install
27
+ run : yarn install --frozen-lockfile --non-interactive
20
28
21
29
- name : Lint
22
30
run : yarn lint
You can’t perform that action at this time.
0 commit comments