File tree Expand file tree Collapse file tree 2 files changed +40
-16
lines changed Expand file tree Collapse file tree 2 files changed +40
-16
lines changed Original file line number Diff line number Diff line change
1
+ name : Test suite
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ pull_request :
7
+ # The branches below must be a subset of the branches above
8
+ branches : [master]
9
+
10
+ jobs :
11
+ update :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v1
15
+
16
+ - name : Get yarn cache directory path
17
+ id : yarn-cache-dir-path
18
+ run : echo "::set-output name=dir::$(yarn cache dir)"
19
+
20
+ - uses : actions/cache@v2
21
+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
22
+ with :
23
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
24
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-yarn-
27
+
28
+ - name : Set Node.js
29
+ uses : actions/setup-node@master
30
+ with :
31
+ node-version : 10.x
32
+
33
+ - name : Install dependencies
34
+ run : yarn install
35
+
36
+ - name : Lint
37
+ run : yarn run lint
38
+
39
+ - name : Build
40
+ run : yarn run build
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments