Skip to content

Commit

Permalink
[internal] Update GitHub Actions workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot authored and t0yv0 committed Jan 12, 2023
1 parent 92274a7 commit f3342c1
Show file tree
Hide file tree
Showing 10 changed files with 160 additions and 463 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/command-dispatch.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

env:
DOTNETVERSION: |
6.0.x
3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.19.x
JAVAVERSION: "11"
NODEVERSION: 16.x
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
Expand All @@ -13,6 +19,7 @@ env:
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYTHONVERSION: "3.9"
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
Expand Down
120 changes: 26 additions & 94 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

env:
DOTNETVERSION: |
6.0.x
3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.19.x
JAVAVERSION: "11"
NODEVERSION: 16.x
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
Expand All @@ -13,6 +19,7 @@ env:
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYTHONVERSION: "3.9"
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
Expand All @@ -37,7 +44,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand All @@ -47,22 +54,22 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{matrix.nodeversion}}
node-version: ${{ env.NODEVERSION }}
registry-url: https://registry.npmjs.org
- name: Setup DotNet
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{matrix.dotnetversion}}
dotnet-version: ${{ env.DOTNETVERSION }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{matrix.pythonversion}}
python-version: ${{ env.PYTHONVERSION }}
- name: Setup Java
uses: actions/setup-java@v3
with:
cache: gradle
distribution: temurin
java-version: ${{matrix.javaversion}}
java-version: ${{ env.JAVAVERSION }}
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -102,24 +109,12 @@ jobs:
strategy:
fail-fast: true
matrix:
dotnetversion:
- |
6.0.x
3.1.301
goversion:
- 1.19.x
javaversion:
- "11"
language:
- nodejs
- python
- dotnet
- go
- java
nodeversion:
- 16.x
pythonversion:
- "3.9"
generate_coverage_data:
continue-on-error: true
env:
Expand All @@ -146,7 +141,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand All @@ -171,11 +166,6 @@ jobs:
s3FullURI="s3://${{ secrets.S3_COVERAGE_BUCKET_NAME }}/summaries/${summaryName}"
aws s3 cp ${{ env.COVERAGE_OUTPUT_DIR }}/summary.json ${s3FullURI} --acl bucket-owner-full-control
strategy:
fail-fast: true
matrix:
goversion:
- 1.19.x
prerequisites:
name: prerequisites
runs-on: ubuntu-latest
Expand All @@ -192,7 +182,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -239,19 +229,6 @@ jobs:
author_name: Failure in building provider prerequisites
fields: repo,commit,author,action
status: ${{ job.status }}
strategy:
fail-fast: true
matrix:
dotnetversion:
- |
6.0.x
3.1.301
goversion:
- 1.19.x
nodeversion:
- 16.x
pythonversion:
- "3.9"
publish:
name: publish
needs: test
Expand All @@ -264,7 +241,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -297,19 +274,6 @@ jobs:
author_name: Failure in publishing binaries
fields: repo,commit,author,action
status: ${{ job.status }}
strategy:
fail-fast: true
matrix:
dotnetversion:
- |
6.0.x
3.1.301
goversion:
- 1.19.x
nodeversion:
- 16.x
pythonversion:
- "3.9"
publish_java_sdk:
continue-on-error: true
name: publish_java_sdk
Expand All @@ -328,7 +292,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand All @@ -340,7 +304,7 @@ jobs:
with:
cache: gradle
distribution: temurin
java-version: ${{matrix.javaversion}}
java-version: ${{ env.JAVAVERSION }}
- name: Download java SDK
uses: actions/download-artifact@v2
with:
Expand All @@ -358,13 +322,6 @@ jobs:
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
build-root-directory: ./sdk/java
gradle-version: 7.4.1
strategy:
fail-fast: true
matrix:
goversion:
- 1.19.x
javaversion:
- "11"
publish_sdk:
name: publish_sdk
needs: publish
Expand All @@ -382,7 +339,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand All @@ -392,16 +349,16 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{matrix.nodeversion}}
node-version: ${{ env.NODEVERSION }}
registry-url: https://registry.npmjs.org
- name: Setup DotNet
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{matrix.dotnetversion}}
dotnet-version: ${{ env.DOTNETVERSION }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{matrix.pythonversion}}
python-version: ${{ env.PYTHONVERSION }}
- name: Download python SDK
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -438,19 +395,6 @@ jobs:
author_name: Failure in publishing SDK
fields: repo,commit,author,action
status: ${{ job.status }}
strategy:
fail-fast: true
matrix:
dotnetversion:
- |
6.0.x
3.1.301
goversion:
- 1.19.x
nodeversion:
- 16.x
pythonversion:
- "3.9"
test:
name: test
needs: build_sdk
Expand All @@ -471,7 +415,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand All @@ -481,22 +425,22 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{matrix.nodeversion}}
node-version: ${{ env.NODEVERSION }}
registry-url: https://registry.npmjs.org
- name: Setup DotNet
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{matrix.dotnetversion}}
dotnet-version: ${{ env.DOTNETVERSION }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{matrix.pythonversion}}
python-version: ${{ env.PYTHONVERSION }}
- name: Setup Java
uses: actions/setup-java@v3
with:
cache: gradle
distribution: temurin
java-version: ${{matrix.javaversion}}
java-version: ${{ env.JAVAVERSION }}
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -543,24 +487,12 @@ jobs:
strategy:
fail-fast: true
matrix:
dotnetversion:
- |
6.0.x
3.1.301
goversion:
- 1.19.x
javaversion:
- "11"
language:
- nodejs
- python
- dotnet
- go
- java
nodeversion:
- 16.x
pythonversion:
- "3.9"
name: main
on:
push:
Expand Down
Loading

0 comments on commit f3342c1

Please sign in to comment.