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 bfb25dc commit 5ac186d
Show file tree
Hide file tree
Showing 10 changed files with 170 additions and 523 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/command-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ env:
ARM_TENANT_ID: 706143bc-e1d4-4593-aee2-c9dc60ab9be7
AWS_REGION: us-west-2
AZURE_LOCATION: westus
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 @@ -19,6 +25,7 @@ env:
PULUMI_GO_DEP_ROOT: /home/runner/work/pulumi-docker
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
134 changes: 28 additions & 106 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ env:
ARM_TENANT_ID: 706143bc-e1d4-4593-aee2-c9dc60ab9be7
AWS_REGION: us-west-2
AZURE_LOCATION: westus
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 @@ -19,6 +25,7 @@ env:
PULUMI_GO_DEP_ROOT: /home/runner/work/pulumi-docker
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 @@ -43,7 +50,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand All @@ -53,22 +60,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 @@ -108,24 +115,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 @@ -152,7 +147,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand All @@ -177,11 +172,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
lint:
container: golangci/golangci-lint:latest
name: lint
Expand All @@ -199,7 +189,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand All @@ -214,11 +204,6 @@ jobs:
author_name: Failure in linting provider
fields: repo,commit,author,action
status: ${{ job.status }}
strategy:
fail-fast: true
matrix:
goversion:
- 1.19.x
lint_sdk:
container: golangci/golangci-lint:latest
name: lint-sdk
Expand All @@ -237,7 +222,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand All @@ -252,11 +237,6 @@ jobs:
author_name: Failure in linting go sdk
fields: repo,commit,author,action
status: ${{ job.status }}
strategy:
fail-fast: true
matrix:
goversion:
- 1.19.x
prerequisites:
name: prerequisites
runs-on: ubuntu-latest
Expand All @@ -273,7 +253,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -320,19 +300,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 @@ -345,7 +312,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -378,19 +345,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 @@ -409,7 +363,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand All @@ -421,7 +375,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 @@ -439,13 +393,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 @@ -463,7 +410,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand All @@ -473,16 +420,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 @@ -519,19 +466,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 @@ -552,7 +486,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand All @@ -562,22 +496,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 @@ -633,24 +567,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 5ac186d

Please sign in to comment.