13
13
uses : actions/setup-java@v1
14
14
with :
15
15
java-version : ' 11.0.7'
16
+ cache : ' maven'
16
17
17
18
- name : 🔧 Install clojure
18
19
uses : DeLaGuardo/setup-clojure@master
@@ -26,14 +27,13 @@ jobs:
26
27
bb run --prn -current-branch
27
28
28
29
- name : 🗝 maven cache
29
- uses : actions/cache@v2
30
+ uses : actions/cache@v3
30
31
with :
31
32
path : |
32
33
~/.m2
33
34
~/.gitlibs
34
- key : ${{ runner.os }}-maven-${{ github.sha }}
35
- restore-keys : |
36
- ${{ runner.os }}-maven-
35
+ ~/.deps.clj
36
+ key : ${{ runner.os }}-maven-build-viewer-${{ hashFiles('deps.edn') }}
37
37
38
38
- name : Build and upload viewer resources
39
39
env :
@@ -85,15 +85,13 @@ jobs:
85
85
bb : latest
86
86
87
87
- name : 🗝 maven cache
88
- uses : actions/cache@v2
88
+ uses : actions/cache@v3
89
89
with :
90
90
path : |
91
91
~/.m2
92
92
~/.gitlibs
93
93
~/.deps.clj
94
- key : ${{ runner.os }}-maven-${{ github.sha }}
95
- restore-keys : |
96
- ${{ runner.os }}-maven-
94
+ key : ${{ runner.os }}-maven-test-${{ hashFiles('deps.edn') }}
97
95
98
96
- name : 🧪 Run tests
99
97
run : bb test:clj :kaocha/reporter '[kaocha.report/documentation]'
@@ -118,14 +116,13 @@ jobs:
118
116
bb : latest
119
117
120
118
- name : 🗝 maven cache
121
- uses : actions/cache@v2
119
+ uses : actions/cache@v3
122
120
with :
123
121
path : |
124
122
~/.m2
125
123
~/.gitlibs
126
- key : ${{ runner.os }}-maven-${{ github.sha }}
127
- restore-keys : |
128
- ${{ runner.os }}-maven-
124
+ ~/.deps.clj
125
+ key : ${{ runner.os }}-maven-build-${{ hashFiles('deps.edn') }}
129
126
130
127
- name : 🗝 Clerk Cache
131
128
uses : actions/cache@v2
@@ -180,14 +177,13 @@ jobs:
180
177
cli : ' 1.10.3.943'
181
178
182
179
- name : 🗝 maven cache
183
- uses : actions/cache@v2
180
+ uses : actions/cache@v3
184
181
with :
185
182
path : |
186
183
~/.m2
187
184
~/.gitlibs
188
- key : ${{ runner.os }}-maven-${{ github.sha }}
189
- restore-keys : |
190
- ${{ runner.os }}-maven-
185
+ ~/.deps.clj
186
+ key : ${{ runner.os }}-maven-ssr-${{ hashFiles('deps.edn') }}
191
187
192
188
- name : 🎨 Setup Tailwindcss
193
189
run : yarn global add tailwindcss @tailwindcss/typography
@@ -231,6 +227,16 @@ jobs:
231
227
with :
232
228
bb : latest
233
229
230
+ - name : 🗝 maven cache
231
+ uses : actions/cache@v3
232
+ with :
233
+ path : |
234
+ ~/.m2
235
+ ~/.gitlibs
236
+ ~/.deps.clj
237
+ key : ${{ runner.os }}-maven-ui-tests-${{ hashFiles('deps.edn') }}
238
+
239
+
234
240
- name : Run Playwright tests against static assets
235
241
run : |
236
242
bb test:static-app ${{ github.sha }}
@@ -250,14 +256,13 @@ jobs:
250
256
bb : latest
251
257
252
258
- name : 🗝 maven cache
253
- uses : actions/cache@v2
259
+ uses : actions/cache@v3
254
260
with :
255
261
path : |
256
262
~/.m2
257
263
~/.gitlibs
258
- key : ${{ runner.os }}-maven-${{ github.sha }}
259
- restore-keys : |
260
- ${{ runner.os }}-maven-
264
+ ~/.deps.clj
265
+ key : ${{ runner.os }}-maven-deploy-${{ hashFiles('deps.edn') }}
261
266
262
267
- name : Install SSH key and start ssh-agent
263
268
uses :
webfactory/[email protected]
0 commit comments