Commit e7b8913 1 parent 11001c0 commit e7b8913 Copy full SHA for e7b8913
File tree 1 file changed +28
-4
lines changed
1 file changed +28
-4
lines changed Original file line number Diff line number Diff line change 6
6
push :
7
7
branches : [ master ]
8
8
jobs :
9
- build :
10
- name : Lint & Test
9
+ test :
10
+ name : Test
11
11
runs-on : ubuntu-latest
12
12
strategy :
13
13
matrix :
35
35
${{ runner.os }}-yarn-
36
36
- run : yarn
37
37
name : Install dependencies...
38
- - name : Lint
39
- run : yarn lint
40
38
- name : Test
41
39
run : yarn test
40
+ lint :
41
+ name : Lint
42
+ runs-on : ubuntu-latest
43
+ strategy :
44
+ matrix :
45
+ node-version : [14.x]
46
+ steps :
47
+ - uses : actions/checkout@v2
48
+ - name : Use Node.js ${{ matrix.node-version }}
49
+ uses : actions/setup-node@v1
50
+ with :
51
+ node-version : ${{ matrix.node-version }}
52
+ - name : Get yarn cache directory path
53
+ id : yarn-cache-dir-path
54
+ run : echo "::set-output name=dir::$(yarn cache dir)"
55
+ - uses : actions/cache@v2
56
+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
57
+ with :
58
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
59
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
60
+ restore-keys : |
61
+ ${{ runner.os }}-yarn-
62
+ - run : yarn
63
+ name : Install dependencies...
64
+ - name : Lint
65
+ run : yarn lint
You can’t perform that action at this time.
0 commit comments