Skip to content

Commit 98d5f84

Browse files
committed
Temporarily add regenerated ci-mgmt workflows directly
1 parent c6fa0e5 commit 98d5f84

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.ci-mgmt.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ actions:
3838
- name: Run provider tests
3939
run: |
4040
cd provider && go test -v -json -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
41+
testPulumiExamples: true

.github/workflows/run-acceptance-tests.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ jobs:
288288
run: exit 1
289289
- name: Workflow is a success
290290
run: echo "🎉🎈🎉🎈🎉"
291+
291292
test:
292293
if: github.event_name == 'repository_dispatch' ||
293294
github.event.pull_request.head.repo.full_name == github.repository
@@ -308,6 +309,14 @@ jobs:
308309
path: ci-scripts
309310
repository: pulumi/scripts
310311
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
311320
- name: Unshallow clone for tags
312321
run: git fetch --prune --unshallow --tags
313322
- name: Install Go
@@ -388,15 +397,20 @@ jobs:
388397
run: |
389398
cd provider && go test -v -json -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
390399
- name: Run tests
400+
if: matrix.testTarget == 'local'
391401
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'
394404
name: Notify Slack
395405
uses: 8398a7/action-slack@v3
396406
with:
397407
author_name: Failure in running ${{ matrix.language }} tests
398408
fields: repo,commit,author,action
399409
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
400414
strategy:
401415
fail-fast: false
402416
matrix:
@@ -406,6 +420,7 @@ jobs:
406420
- dotnet
407421
- go
408422
- java
423+
testTarget: [local, pulumiExamples]
409424
license_check:
410425
name: License Check
411426
uses: ./.github/workflows/license.yml

0 commit comments

Comments
 (0)