@@ -18,11 +18,16 @@ jobs:
18
18
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
19
19
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
20
20
- ${{ github.workspace }}/../../cache/general:/root/.cache
21
- if : " (
22
- github.event_name == 'push' &&
23
- !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
24
- ) ||
25
- github.event_name == 'schedule')"
21
+ if : " github.event_name == 'schedule'
22
+ || (
23
+ github.event_name == 'push'
24
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
25
+ )
26
+ || (
27
+ github.event_name == 'pull_request'
28
+ && !contains(github.event.pull_request.body, '[skip ci]')
29
+ && contains(github.event.pull_request.body, '[test_non_bootstrapped]')
30
+ )"
26
31
steps :
27
32
- name : Set JDK 15 as default
28
33
run : echo "/usr/lib/jvm/java-15-openjdk-amd64/bin" >> $GITHUB_PATH
52
57
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
53
58
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
54
59
- ${{ github.workspace }}/../../cache/general:/root/.cache
55
- if : " !(github.event_name == 'push' &&
56
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
60
+ if : " github.event_name == 'schedule'
61
+ || (
62
+ github.event_name == 'push'
63
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
64
+ )
65
+ || (
66
+ github.event_name == 'pull_request'
67
+ && !contains(github.event.pull_request.body, '[skip ci]')
68
+ && !contains(github.event.pull_request.body, '[skip test]')
69
+ )"
57
70
58
71
steps :
59
72
- name : Set JDK 15 as default
78
91
79
92
test_windows :
80
93
runs-on : [self-hosted, Windows]
81
- if : " !(github.event_name == 'push' &&
82
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-'))"
94
+ if : " github.event_name == 'schedule'
95
+ || (
96
+ github.event_name == 'push'
97
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
98
+ )
99
+ || (
100
+ github.event_name == 'pull_request'
101
+ && !contains(github.event.pull_request.body, '[skip ci]')
102
+ && !contains(github.event.pull_request.body, '[skip test_windows]')
103
+ )"
83
104
84
105
steps :
85
106
- name : Git Checkout
@@ -101,6 +122,13 @@ jobs:
101
122
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
102
123
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
103
124
- ${{ github.workspace }}/../../cache/general:/root/.cache
125
+ if : " github.event_name == 'schedule'
126
+ || github.event_name == 'push'
127
+ || (
128
+ github.event_name == 'pull_request'
129
+ && !contains(github.event.pull_request.body, '[skip ci]')
130
+ && !contains(github.event.pull_request.body, '[skip community_build]')
131
+ )"
104
132
105
133
steps :
106
134
- name : Checkout cleanup script
@@ -129,6 +157,13 @@ jobs:
129
157
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
130
158
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
131
159
- ${{ github.workspace }}/../../cache/general:/root/.cache
160
+ if : " github.event_name == 'schedule'
161
+ || github.event_name == 'push'
162
+ || (
163
+ github.event_name == 'pull_request'
164
+ && !contains(github.event.pull_request.body, '[skip ci]')
165
+ && !contains(github.event.pull_request.body, '[skip community_build]')
166
+ )"
132
167
133
168
steps :
134
169
- name : Checkout cleanup script
@@ -157,11 +192,16 @@ jobs:
157
192
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
158
193
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
159
194
- ${{ github.workspace }}/../../cache/general:/root/.cache
160
- if : (
161
- github.event_name == 'push' &&
162
- startsWith(github.event.ref, 'refs/tags/')
163
- ) ||
164
- github.event_name == 'schedule'
195
+ if : " github.event_name == 'schedule'
196
+ || (
197
+ github.event_name == 'push'
198
+ && startsWith(github.event.ref, 'refs/tags/')
199
+ )
200
+ || (
201
+ github.event_name == 'pull_request'
202
+ && !contains(github.event.pull_request.body, '[skip ci]')
203
+ && contains(github.event.pull_request.body, '[test_sbt]')
204
+ )"
165
205
166
206
steps :
167
207
- name : Checkout cleanup script
@@ -188,12 +228,17 @@ jobs:
188
228
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
189
229
- ${{ github.workspace }}/../../cache/general:/root/.cache
190
230
191
- if : " (
192
- github.event_name == 'push' &&
193
- startsWith(github.event.ref, 'refs/tags/') &&
194
- !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
195
- ) ||
196
- github.event_name == 'schedule'"
231
+ if : " github.event_name == 'schedule'
232
+ || (
233
+ github.event_name == 'push'
234
+ && startsWith(github.event.ref, 'refs/tags/')
235
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
236
+ )
237
+ || (
238
+ github.event_name == 'pull_request'
239
+ && !contains(github.event.pull_request.body, '[skip ci]')
240
+ && contains(github.event.pull_request.body, '[test_java8]')
241
+ )"
197
242
198
243
steps :
199
244
- name : Set JDK 8 as default
@@ -225,7 +270,7 @@ jobs:
225
270
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
226
271
- ${{ github.workspace }}/../../cache/general:/root/.cache
227
272
needs : [test_non_bootstrapped, test, community_build_a, community_build_b, test_sbt, test_java8]
228
- if : github.event_name == 'schedule'
273
+ if : " github.event_name == 'schedule'"
229
274
env :
230
275
NIGHTLYBUILD : yes
231
276
PGP_PW : ${{ secrets.PGP_PW }} # PGP passphrase
@@ -259,7 +304,7 @@ jobs:
259
304
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
260
305
- ${{ github.workspace }}/../../cache/general:/root/.cache
261
306
needs : [publish_nightly]
262
- if : github.event_name == 'schedule'
307
+ if : " github.event_name == 'schedule'"
263
308
env :
264
309
NIGHTLYBUILD : yes
265
310
BOT_TOKEN : ${{ secrets.BOT_TOKEN }} # If you need to change this:
@@ -300,9 +345,9 @@ jobs:
300
345
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
301
346
- ${{ github.workspace }}/../../cache/general:/root/.cache
302
347
needs : [test_non_bootstrapped, test, community_build_a, community_build_b, test_sbt, test_java8]
303
- if : github.event_name == 'push' &&
304
- startsWith(github.event.ref, 'refs/tags/') &&
305
- !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
348
+ if : " github.event_name == 'push'
349
+ && startsWith(github.event.ref, 'refs/tags/')
350
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
306
351
307
352
env :
308
353
RELEASEBUILD : yes
@@ -382,9 +427,9 @@ jobs:
382
427
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
383
428
- ${{ github.workspace }}/../../cache/general:/root/.cache
384
429
needs : [publish_release]
385
- if : github.event_name == 'push' &&
386
- startsWith(github.event.ref, 'refs/tags/') &&
387
- !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
430
+ if : " github.event_name == 'push'
431
+ && startsWith(github.event.ref, 'refs/tags/')
432
+ && !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
388
433
389
434
env :
390
435
RELEASEBUILD : yes
@@ -426,8 +471,8 @@ jobs:
426
471
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
427
472
- ${{ github.workspace }}/../../cache/general:/root/.cache
428
473
needs : [community_build_a, community_build_b, test_sbt]
429
- if : github.event_name == 'push' &&
430
- startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
474
+ if : " github.event_name == 'push'
475
+ && startsWith(github.event.ref, 'refs/tags/sbt-dotty-')"
431
476
432
477
env :
433
478
RELEASEBUILD : yes
0 commit comments