@@ -288,6 +288,7 @@ jobs:
288
288
run : exit 1
289
289
- name : Workflow is a success
290
290
run : echo "🎉🎈🎉🎈🎉"
291
+
291
292
test :
292
293
if : github.event_name == 'repository_dispatch' ||
293
294
github.event.pull_request.head.repo.full_name == github.repository
@@ -308,6 +309,14 @@ jobs:
308
309
path : ci-scripts
309
310
repository : pulumi/scripts
310
311
ref : deca2c5c6015ad7aaea6f572a1c2b198ca323592
312
+ - name : Checkout p/examples
313
+ if : matrix.testTarget == 'pulumiExamples'
314
+ uses : actions/checkout@v4
315
+ with :
316
+ repository : pulumi/examples
317
+ # TODO,tkappler change to master when merged
318
+ ref : tkappler/separate-tests-by-provider
319
+ path : p-examples
311
320
- name : Unshallow clone for tags
312
321
run : git fetch --prune --unshallow --tags
313
322
- name : Install Go
@@ -388,15 +397,20 @@ jobs:
388
397
run : |
389
398
cd provider && go test -v -json -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
390
399
- name : Run tests
400
+ if : matrix.testTarget == 'local'
391
401
run : cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
392
- matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
393
- - if : failure() && github.event_name == 'push'
402
+ matrix.language }} -skip TestPulumiExamples - parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
403
+ - if : failure() && github.event_name == 'push' && matrix.testTarget == 'local'
394
404
name : Notify Slack
395
405
uses : 8398a7/action-slack@v3
396
406
with :
397
407
author_name : Failure in running ${{ matrix.language }} tests
398
408
fields : repo,commit,author,action
399
409
status : ${{ job.status }}
410
+ - name : Run pulumi/examples tests
411
+ if : matrix.testTarget == 'pulumiExamples'
412
+ run : cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
413
+ matrix.language }} -run TestPulumiExamples -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
400
414
strategy :
401
415
fail-fast : false
402
416
matrix :
@@ -406,6 +420,7 @@ jobs:
406
420
- dotnet
407
421
- go
408
422
- java
423
+ testTarget : [local, pulumiExamples]
409
424
license_check :
410
425
name : License Check
411
426
uses : ./.github/workflows/license.yml
0 commit comments