@@ -18,20 +18,11 @@ jobs:
18
18
steps :
19
19
- uses : actions/checkout@v2
20
20
21
- - uses : actions/setup-node@v2.1.5
21
+ - uses : actions/setup-node@v2.2.0
22
22
with :
23
23
node-version : 14.x
24
+ cache : yarn
24
25
25
- - name : Get yarn cache
26
- id : yarn-cache
27
- run : echo "::set-output name=dir::$(yarn config get cacheFolder)"
28
-
29
-
30
- with :
31
- path : ${{ steps.yarn-cache.outputs.dir }}
32
- key : yarn2-${{ hashFiles('yarn.lock') }}
33
- restore-keys : |
34
- yarn2-
35
26
- name : Validate cache
36
27
env :
37
28
# Use PnP and disable postinstall scripts as this just needs to
@@ -45,18 +36,10 @@ jobs:
45
36
runs-on : ubuntu-latest
46
37
steps :
47
38
- uses : actions/checkout@v2
48
- - name : Get yarn cache
49
- id : yarn-cache
50
- run : echo "::set-output name=dir::$(yarn config get cacheFolder)"
51
- - uses : actions/cache@v2
52
- with :
53
- path : ${{ steps.yarn-cache.outputs.dir }}
54
- key : yarn2-${{ hashFiles('yarn.lock') }}
55
- restore-keys : |
56
- yarn2-
57
-
39
+
58
40
with :
59
41
node-version : 14.x
42
+ cache : yarn
60
43
- name : install
61
44
run : yarn
62
45
- name : run prettier
@@ -67,18 +50,10 @@ jobs:
67
50
runs-on : ubuntu-latest
68
51
steps :
69
52
- uses : actions/checkout@v2
70
- - name : Get yarn cache
71
- id : yarn-cache
72
- run : echo "::set-output name=dir::$(yarn config get cacheFolder)"
73
- - uses : actions/cache@v2
74
- with :
75
- path : ${{ steps.yarn-cache.outputs.dir }}
76
- key : yarn2-${{ hashFiles('yarn.lock') }}
77
- restore-keys : |
78
- yarn2-
79
-
53
+
80
54
with :
81
55
node-version : 14.x
56
+ cache : yarn
82
57
- name : install
83
58
run : yarn
84
59
- name : run typecheck
87
62
test-node :
88
63
name :
89
64
# prettier-ignore
90
- Test on Node.js v${{ matrix.node-version }} and eslint v${{matrix.eslint-version }}
65
+ Test on Node.js v${{ matrix.node-version }} and eslint v${{ matrix.eslint-version }}
91
66
needs : prepare-yarn-cache
92
67
strategy :
93
68
fail-fast : false
@@ -98,23 +73,15 @@ jobs:
98
73
99
74
steps :
100
75
- uses : actions/checkout@v2
101
- - name : Get yarn cache
102
- id : yarn-cache
103
- run : echo "::set-output name=dir::$(yarn config get cacheFolder)"
104
- - uses : actions/cache@v2
105
- with :
106
- path : ${{ steps.yarn-cache.outputs.dir }}
107
- key : yarn2-${{ hashFiles('yarn.lock') }}
108
- restore-keys : |
109
- yarn2-
110
76
- name : Use Node.js ${{ matrix.node-version }}
111
- uses : actions/setup-node@v2.1.5
77
+ uses : actions/setup-node@v2.2.0
112
78
with :
113
79
node-version : ${{ matrix.node-version }}
114
- - name : install with eslint v${{matrix.eslint-version }}
80
+ cache : yarn
81
+ - name : install with eslint v${{ matrix.eslint-version }}
115
82
run : |
116
83
yarn
117
- yarn add --dev eslint@${{matrix.eslint-version }}
84
+ yarn add --dev eslint@${{ matrix.eslint-version }}
118
85
- name : run tests
119
86
# only collect coverage on eslint versions that support the suggestions api
120
87
run : yarn test --coverage ${{ matrix.eslint-version >= 6 }}
@@ -133,18 +100,10 @@ jobs:
133
100
134
101
steps :
135
102
- uses : actions/checkout@v2
136
- - name : Get yarn cache
137
- id : yarn-cache
138
- run : echo "::set-output name=dir::$(yarn config get cacheFolder)"
139
- - uses : actions/cache@v2
140
- with :
141
- path : ${{ steps.yarn-cache.outputs.dir }}
142
- key : yarn2-${{ hashFiles('yarn.lock') }}
143
- restore-keys : |
144
- yarn2-
145
-
103
+
146
104
with :
147
105
node-version : 14.x
106
+ cache : yarn
148
107
- name : install
149
108
run : yarn
150
109
- name : run tests
@@ -158,18 +117,10 @@ jobs:
158
117
runs-on : ubuntu-latest
159
118
steps :
160
119
- uses : actions/checkout@v2
161
- - name : Get yarn cache
162
- id : yarn-cache
163
- run : echo "::set-output name=dir::$(yarn config get cacheFolder)"
164
- - uses : actions/cache@v2
165
- with :
166
- path : ${{ steps.yarn-cache.outputs.dir }}
167
- key : yarn2-${{ hashFiles('yarn.lock') }}
168
- restore-keys : |
169
- yarn2-
170
-
120
+
171
121
with :
172
122
node-version : 14.x
123
+ cache : yarn
173
124
- name : install
174
125
run : yarn
175
126
- name : regenerate docs
@@ -189,18 +140,10 @@ jobs:
189
140
runs-on : ubuntu-latest
190
141
steps :
191
142
- uses : actions/checkout@v2
192
- - name : Get yarn cache
193
- id : yarn-cache
194
- run : echo "::set-output name=dir::$(yarn config get cacheFolder)"
195
- - uses : actions/cache@v2
196
- with :
197
- path : ${{ steps.yarn-cache.outputs.dir }}
198
- key : yarn2-${{ hashFiles('yarn.lock') }}
199
- restore-keys : |
200
- yarn2-
201
-
143
+
202
144
with :
203
145
node-version : 14.x
146
+ cache : yarn
204
147
- name : install
205
148
run : yarn
206
149
- run : yarn semantic-release
0 commit comments