Skip to content

Commit 44cc971

Browse files
committed
Temporarily add regenerated ci-mgmt workflows directly
1 parent 20594e4 commit 44cc971

File tree

6 files changed

+23
-7
lines changed

6 files changed

+23
-7
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, false]

.github/workflows/master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ jobs:
458458
uses: GoTestTools/gotestfmt-action@v2
459459
with:
460460
token: ${{ secrets.GITHUB_TOKEN }}
461-
version: v2.4.0
461+
version: v2.5.0
462462
- name: make upstream
463463
run: |
464464
make upstream

.github/workflows/nightly-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ jobs:
305305
uses: GoTestTools/gotestfmt-action@v2
306306
with:
307307
token: ${{ secrets.GITHUB_TOKEN }}
308-
version: v2.4.0
308+
version: v2.5.0
309309
- name: make upstream
310310
run: |
311311
make upstream

.github/workflows/prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ jobs:
383383
uses: GoTestTools/gotestfmt-action@v2
384384
with:
385385
token: ${{ secrets.GITHUB_TOKEN }}
386-
version: v2.4.0
386+
version: v2.5.0
387387
- name: make upstream
388388
run: |
389389
make upstream

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ jobs:
431431
uses: GoTestTools/gotestfmt-action@v2
432432
with:
433433
token: ${{ secrets.GITHUB_TOKEN }}
434-
version: v2.4.0
434+
version: v2.5.0
435435
- name: make upstream
436436
run: |
437437
make upstream

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

Lines changed: 18 additions & 3 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.testPulumiExamples == 'true'
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
@@ -380,23 +389,28 @@ jobs:
380389
uses: GoTestTools/gotestfmt-action@v2
381390
with:
382391
token: ${{ secrets.GITHUB_TOKEN }}
383-
version: v2.4.0
392+
version: v2.5.0
384393
- name: make upstream
385394
run: |
386395
make upstream
387396
- name: Run provider tests
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.testPulumiExamples == 'false'
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.testPulumiExamples == 'false'
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.testPulumiExamples == 'true'
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+
testPulumiExamples: [true, false]
409424
license_check:
410425
name: License Check
411426
uses: ./.github/workflows/license.yml

0 commit comments

Comments
 (0)