Skip to content

Commit 956950a

Browse files
committed
[internal] Update GitHub Actions workflow files
1 parent 89416b8 commit 956950a

17 files changed

+456
-177
lines changed

.github/workflows/artifact-cleanup.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
2+
13
jobs:
24
remove-old-artifacts:
35
runs-on: ubuntu-latest

.github/workflows/command-dispatch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
2+
13
env:
24
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/community-moderation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
2+
13
env:
24
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
jobs:

.github/workflows/main.yml

Lines changed: 60 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
2+
13
env:
24
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -376,6 +378,61 @@ jobs:
376378
- 16.x
377379
pythonversion:
378380
- "3.9"
381+
publish_java_sdk:
382+
continue-on-error: true
383+
name: publish_java_sdk
384+
needs: publish
385+
runs-on: ubuntu-latest
386+
steps:
387+
- name: Checkout Repo
388+
uses: actions/checkout@v3
389+
- name: Checkout Scripts Repo
390+
uses: actions/checkout@v3
391+
with:
392+
path: ci-scripts
393+
repository: pulumi/scripts
394+
- name: Unshallow clone for tags
395+
run: git fetch --prune --unshallow --tags
396+
- name: Install Go
397+
uses: actions/setup-go@v2
398+
with:
399+
go-version: ${{matrix.goversion}}
400+
- name: Install pulumictl
401+
uses: jaxxstorm/action-install-gh-release@v1.5.0
402+
with:
403+
repo: pulumi/pulumictl
404+
- name: Install Pulumi CLI
405+
uses: pulumi/action-install-pulumi-cli@v2
406+
- name: Setup Java
407+
uses: actions/setup-java@v3
408+
with:
409+
cache: gradle
410+
distribution: temurin
411+
java-version: ${{matrix.javaversion}}
412+
- name: Download java SDK
413+
uses: actions/download-artifact@v2
414+
with:
415+
name: java-sdk.tar.gz
416+
path: ${{ github.workspace}}/sdk/
417+
- name: Uncompress java SDK
418+
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C
419+
${{github.workspace}}/sdk/java
420+
- name: Set PACKAGE_VERSION to Env
421+
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
422+
$GITHUB_ENV
423+
- name: Publish Java SDK
424+
uses: gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49
425+
with:
426+
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
427+
build-root-directory: ./sdk/java
428+
gradle-version: 7.4.1
429+
strategy:
430+
fail-fast: true
431+
matrix:
432+
goversion:
433+
- 1.19.x
434+
javaversion:
435+
- "11"
379436
publish_sdk:
380437
name: publish_sdk
381438
needs: publish
@@ -413,12 +470,6 @@ jobs:
413470
uses: actions/setup-python@v2
414471
with:
415472
python-version: ${{matrix.pythonversion}}
416-
- name: Setup Java
417-
uses: actions/setup-java@v3
418-
with:
419-
cache: gradle
420-
distribution: temurin
421-
java-version: ${{matrix.javaversion}}
422473
- name: Download python SDK
423474
uses: actions/download-artifact@v2
424475
with:
@@ -443,28 +494,11 @@ jobs:
443494
- name: Uncompress nodejs SDK
444495
run: tar -zxf ${{github.workspace}}/sdk/nodejs.tar.gz -C
445496
${{github.workspace}}/sdk/nodejs
446-
- name: Download java SDK
447-
uses: actions/download-artifact@v2
448-
with:
449-
name: java-sdk.tar.gz
450-
path: ${{ github.workspace}}/sdk/
451-
- name: Uncompress java SDK
452-
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C
453-
${{github.workspace}}/sdk/java
454497
- run: python -m pip install pip twine
455498
- env:
456499
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
457500
name: Publish SDKs
458501
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }}
459-
- name: Set PACKAGE_VERSION to Env
460-
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
461-
$GITHUB_ENV
462-
- name: Publish Java SDK
463-
uses: gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49
464-
with:
465-
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
466-
build-root-directory: ./sdk/java
467-
gradle-version: 7.4.1
468502
- if: failure() && github.event_name == 'push'
469503
name: Notify Slack
470504
uses: 8398a7/action-slack@v3
@@ -479,8 +513,6 @@ jobs:
479513
- 3.1.301
480514
goversion:
481515
- 1.19.x
482-
javaversion:
483-
- "11"
484516
nodeversion:
485517
- 16.x
486518
pythonversion:
@@ -562,9 +594,10 @@ jobs:
562594
- name: Install dependencies
563595
run: make install_${{ matrix.language}}_sdk
564596
- name: Install gotestfmt
565-
uses: jaxxstorm/action-install-gh-release@v1.5.0
597+
uses: GoTestTools/gotestfmt-action@v2
566598
with:
567-
repo: haveyoudebuggedit/gotestfmt
599+
token: ${{ secrets.GITHUB_TOKEN }}
600+
version: v2.4.0
568601
- name: Run tests
569602
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
570603
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt

.github/workflows/master.yml

Lines changed: 60 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
2+
13
env:
24
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -376,6 +378,61 @@ jobs:
376378
- 16.x
377379
pythonversion:
378380
- "3.9"
381+
publish_java_sdk:
382+
continue-on-error: true
383+
name: publish_java_sdk
384+
needs: publish
385+
runs-on: ubuntu-latest
386+
steps:
387+
- name: Checkout Repo
388+
uses: actions/checkout@v3
389+
- name: Checkout Scripts Repo
390+
uses: actions/checkout@v3
391+
with:
392+
path: ci-scripts
393+
repository: pulumi/scripts
394+
- name: Unshallow clone for tags
395+
run: git fetch --prune --unshallow --tags
396+
- name: Install Go
397+
uses: actions/setup-go@v2
398+
with:
399+
go-version: ${{matrix.goversion}}
400+
- name: Install pulumictl
401+
uses: jaxxstorm/action-install-gh-release@v1.5.0
402+
with:
403+
repo: pulumi/pulumictl
404+
- name: Install Pulumi CLI
405+
uses: pulumi/action-install-pulumi-cli@v2
406+
- name: Setup Java
407+
uses: actions/setup-java@v3
408+
with:
409+
cache: gradle
410+
distribution: temurin
411+
java-version: ${{matrix.javaversion}}
412+
- name: Download java SDK
413+
uses: actions/download-artifact@v2
414+
with:
415+
name: java-sdk.tar.gz
416+
path: ${{ github.workspace}}/sdk/
417+
- name: Uncompress java SDK
418+
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C
419+
${{github.workspace}}/sdk/java
420+
- name: Set PACKAGE_VERSION to Env
421+
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
422+
$GITHUB_ENV
423+
- name: Publish Java SDK
424+
uses: gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49
425+
with:
426+
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
427+
build-root-directory: ./sdk/java
428+
gradle-version: 7.4.1
429+
strategy:
430+
fail-fast: true
431+
matrix:
432+
goversion:
433+
- 1.19.x
434+
javaversion:
435+
- "11"
379436
publish_sdk:
380437
name: publish_sdk
381438
needs: publish
@@ -413,12 +470,6 @@ jobs:
413470
uses: actions/setup-python@v2
414471
with:
415472
python-version: ${{matrix.pythonversion}}
416-
- name: Setup Java
417-
uses: actions/setup-java@v3
418-
with:
419-
cache: gradle
420-
distribution: temurin
421-
java-version: ${{matrix.javaversion}}
422473
- name: Download python SDK
423474
uses: actions/download-artifact@v2
424475
with:
@@ -443,28 +494,11 @@ jobs:
443494
- name: Uncompress nodejs SDK
444495
run: tar -zxf ${{github.workspace}}/sdk/nodejs.tar.gz -C
445496
${{github.workspace}}/sdk/nodejs
446-
- name: Download java SDK
447-
uses: actions/download-artifact@v2
448-
with:
449-
name: java-sdk.tar.gz
450-
path: ${{ github.workspace}}/sdk/
451-
- name: Uncompress java SDK
452-
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C
453-
${{github.workspace}}/sdk/java
454497
- run: python -m pip install pip twine
455498
- env:
456499
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
457500
name: Publish SDKs
458501
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }}
459-
- name: Set PACKAGE_VERSION to Env
460-
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
461-
$GITHUB_ENV
462-
- name: Publish Java SDK
463-
uses: gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49
464-
with:
465-
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
466-
build-root-directory: ./sdk/java
467-
gradle-version: 7.4.1
468502
- if: failure() && github.event_name == 'push'
469503
name: Notify Slack
470504
uses: 8398a7/action-slack@v3
@@ -479,8 +513,6 @@ jobs:
479513
- 3.1.301
480514
goversion:
481515
- 1.19.x
482-
javaversion:
483-
- "11"
484516
nodeversion:
485517
- 16.x
486518
pythonversion:
@@ -562,9 +594,10 @@ jobs:
562594
- name: Install dependencies
563595
run: make install_${{ matrix.language}}_sdk
564596
- name: Install gotestfmt
565-
uses: jaxxstorm/action-install-gh-release@v1.5.0
597+
uses: GoTestTools/gotestfmt-action@v2
566598
with:
567-
repo: haveyoudebuggedit/gotestfmt
599+
token: ${{ secrets.GITHUB_TOKEN }}
600+
version: v2.4.0
568601
- name: Run tests
569602
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
570603
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt

.github/workflows/nightly-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
2+
13
env:
24
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -266,9 +268,10 @@ jobs:
266268
- name: Install dependencies
267269
run: make install_${{ matrix.language}}_sdk
268270
- name: Install gotestfmt
269-
uses: jaxxstorm/action-install-gh-release@v1.5.0
271+
uses: GoTestTools/gotestfmt-action@v2
270272
with:
271-
repo: haveyoudebuggedit/gotestfmt
273+
token: ${{ secrets.GITHUB_TOKEN }}
274+
version: v2.4.0
272275
- name: Run tests
273276
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
274277
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt

0 commit comments

Comments
 (0)