1
1
name : CI/CD
2
2
on :
3
- push :
3
+ # only on PRs into default branch
4
+ pull_request :
5
+ branches :
6
+ - master
4
7
5
8
jobs :
6
- # runs on branch pushes only
7
9
ci_unit :
8
10
name : Run Unit Tests
9
- if : startsWith(github.ref, 'refs/heads')
10
11
runs-on : ubuntu-latest
11
12
steps :
12
13
- name : Checkout
26
27
27
28
ci_integration :
28
29
name : Run Integration Tests
29
- if : startsWith(github.ref, 'refs/heads')
30
30
runs-on : ubuntu-latest
31
31
steps :
32
32
- name : Checkout
@@ -137,7 +137,6 @@ jobs:
137
137
138
138
ci_integration_envvar :
139
139
name : Run Integration Env Var Tests
140
- if : startsWith(github.ref, 'refs/heads')
141
140
runs-on : ubuntu-latest
142
141
steps :
143
142
- name : Checkout
@@ -159,7 +158,6 @@ jobs:
159
158
160
159
ci_integration_large_output :
161
160
name : Run Integration Large Output Tests
162
- if : startsWith(github.ref, 'refs/heads')
163
161
runs-on : ubuntu-latest
164
162
steps :
165
163
- name : Checkout
@@ -191,7 +189,6 @@ jobs:
191
189
192
190
ci_integration_retry_on_exit_code :
193
191
name : Run Integration retry_on_exit_code Tests
194
- if : startsWith(github.ref, 'refs/heads')
195
192
runs-on : ubuntu-latest
196
193
steps :
197
194
- name : Checkout
@@ -240,7 +237,6 @@ jobs:
240
237
241
238
ci_integration_continue_on_error :
242
239
name : Run Integration continue_on_error Tests
243
- if : startsWith(github.ref, 'refs/heads')
244
240
runs-on : ubuntu-latest
245
241
steps :
246
242
- name : Checkout
@@ -288,7 +284,6 @@ jobs:
288
284
289
285
ci_integration_retry_wait_seconds :
290
286
name : Run Integration Tests (retry_wait_seconds)
291
- if : startsWith(github.ref, 'refs/heads')
292
287
runs-on : ubuntu-latest
293
288
steps :
294
289
- name : Checkout
@@ -325,7 +320,6 @@ jobs:
325
320
326
321
ci_integration_on_retry_cmd :
327
322
name : Run Integration Tests (on_retry_command)
328
- if : startsWith(github.ref, 'refs/heads')
329
323
runs-on : ubuntu-latest
330
324
steps :
331
325
- name : Checkout
@@ -369,7 +363,6 @@ jobs:
369
363
# timeout tests take longer to run so run in parallel
370
364
ci_integration_timeout_seconds :
371
365
name : Run Integration Timeout Tests (seconds)
372
- if : startsWith(github.ref, 'refs/heads')
373
366
runs-on : ubuntu-latest
374
367
steps :
375
368
- name : Checkout
@@ -400,7 +393,6 @@ jobs:
400
393
401
394
ci_integration_timeout_retry_on_timeout :
402
395
name : Run Integration Timeout Tests (retry_on timeout)
403
- if : startsWith(github.ref, 'refs/heads')
404
396
runs-on : ubuntu-latest
405
397
steps :
406
398
- name : Checkout
@@ -432,7 +424,6 @@ jobs:
432
424
433
425
ci_integration_timeout_retry_on_error :
434
426
name : Run Integration Timeout Tests (retry_on error)
435
- if : startsWith(github.ref, 'refs/heads')
436
427
runs-on : ubuntu-latest
437
428
steps :
438
429
- name : Checkout
@@ -468,7 +459,6 @@ jobs:
468
459
469
460
ci_integration_timeout_minutes :
470
461
name : Run Integration Timeout Tests (minutes)
471
- if : startsWith(github.ref, 'refs/heads')
472
462
runs-on : ubuntu-latest
473
463
steps :
474
464
- name : Checkout
@@ -499,7 +489,6 @@ jobs:
499
489
500
490
ci_windows :
501
491
name : Run Windows Tests
502
- if : startsWith(github.ref, 'refs/heads')
503
492
runs-on : windows-latest
504
493
steps :
505
494
- name : Checkout
@@ -571,7 +560,7 @@ jobs:
571
560
steps :
572
561
- run : echo "If this is hit, all tests successfully passed"
573
562
574
- # runs on push to master only
563
+ # runs on merge to master only
575
564
cd :
576
565
name : Publish Action
577
566
needs : [ci_all_tests_passed]
0 commit comments