File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 18
18
runs-on : ubuntu-latest
19
19
steps :
20
20
- uses : actions/checkout@master
21
+ - name : Get yarn cache directory path
22
+ id : yarn-cache-dir-path
23
+ run : echo "::set-output name=dir::$(yarn cache dir)"
24
+ - uses : actions/cache@v2
25
+ id : yarn-cache
26
+ with :
27
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
28
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
29
+ restore-keys : |
30
+ ${{ runner.os }}-yarn-
21
31
- run : yarn
22
32
- run : yarn check-lint
23
33
- run : yarn check-format
26
36
runs-on : ubuntu-latest
27
37
steps :
28
38
- uses : actions/checkout@master
39
+ - name : Get yarn cache directory path
40
+ id : yarn-cache-dir-path
41
+ run : echo "::set-output name=dir::$(yarn cache dir)"
42
+ - uses : actions/cache@v2
43
+ id : yarn-cache
44
+ with :
45
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
46
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
47
+ restore-keys : |
48
+ ${{ runner.os }}-yarn-
29
49
- run : yarn && yarn build
30
50
- name : Check if js dist files are current
31
51
id : changes
@@ -127,5 +147,15 @@ jobs:
127
147
runs-on : ubuntu-latest
128
148
steps :
129
149
- uses : actions/checkout@master
150
+ - name : Get yarn cache directory path
151
+ id : yarn-cache-dir-path
152
+ run : echo "::set-output name=dir::$(yarn cache dir)"
153
+ - uses : actions/cache@v2
154
+ id : yarn-cache
155
+ with :
156
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
157
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
158
+ restore-keys : |
159
+ ${{ runner.os }}-yarn-
130
160
- run : yarn
131
161
- run : yarn test
You can’t perform that action at this time.
0 commit comments