@@ -281,6 +281,7 @@ jobs:
281281 run : exit 1
282282 - name : Workflow is a success
283283 run : echo "🎉🎈🎉🎈🎉"
284+
284285 test :
285286 if : github.event_name == 'repository_dispatch' ||
286287 github.event.pull_request.head.repo.full_name == github.repository
@@ -301,6 +302,12 @@ jobs:
301302 path : ci-scripts
302303 repository : pulumi/scripts
303304 ref : deca2c5c6015ad7aaea6f572a1c2b198ca323592
305+ - name : Checkout p/examples
306+ if : matrix.testTarget == 'pulumiExamples'
307+ uses : actions/checkout@v4
308+ with :
309+ repository : pulumi/examples
310+ path : p-examples
304311 - name : Unshallow clone for tags
305312 run : git fetch --prune --unshallow --tags
306313 - name : Install Go
@@ -377,15 +384,20 @@ jobs:
377384 token : ${{ secrets.GITHUB_TOKEN }}
378385 version : v2.5.0
379386 - name : Run tests
387+ if : matrix.testTarget == 'local'
380388 run : cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
381- matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
382- - if : failure() && github.event_name == 'push'
389+ matrix.language }} -skip TestPulumiExamples - parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
390+ - if : failure() && github.event_name == 'push' && matrix.testTarget == 'local'
383391 name : Notify Slack
384392 uses : 8398a7/action-slack@v3
385393 with :
386394 author_name : Failure in running ${{ matrix.language }} tests
387395 fields : repo,commit,author,action
388396 status : ${{ job.status }}
397+ - name : Run pulumi/examples tests
398+ if : matrix.testTarget == 'pulumiExamples'
399+ run : cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
400+ matrix.language }} -run TestPulumiExamples -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
389401 strategy :
390402 fail-fast : false
391403 matrix :
@@ -395,6 +407,7 @@ jobs:
395407 - dotnet
396408 - go
397409 - java
410+ testTarget : [local]
398411 license_check :
399412 name : License Check
400413 uses : ./.github/workflows/license.yml
0 commit comments