Skip to content

Commit

Permalink
Update GitHub Actions workflows. (#450)
Browse files Browse the repository at this point in the history
This PR was automatically generated by the
update-workflows-ecosysetem-providers.yml workflow in the pulumi/ci-mgmt
repo, from 73a43f6621eabee19fe500f0af4bdaed30e10378.
  • Loading branch information
pulumi-bot authored Sep 21, 2023
1 parent e2c1ff9 commit b258fa0
Show file tree
Hide file tree
Showing 17 changed files with 161 additions and 132 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/command-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
GH_ORGANIZATION: ${{ secrets.GH_ORGANIZATION }}
GH_TESTING_TOKEN: ${{ secrets.GH_TESTING_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.20.1
GOVERSION: 1.21.x
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down
42 changes: 18 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
GH_ORGANIZATION: ${{ secrets.GH_ORGANIZATION }}
GH_TESTING_TOKEN: ${{ secrets.GH_TESTING_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.20.1
GOVERSION: 1.21.x
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand All @@ -178,34 +178,28 @@ jobs:
aws s3 cp "${{ env.COVERAGE_OUTPUT_DIR }}/summary.json" "${s3FullURI}" --acl bucket-owner-full-control
lint:
container: golangci/golangci-lint:v1.51
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Checkout Scripts Repo
uses: actions/checkout@v3
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER }}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v4
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- run: make lint_provider
go-version: 1.21.x
- name: disarm go:embed directives to enable lint
run: |
git grep -l 'go:embed' -- provider | xargs sed -i 's/go:embed/ goembed/g'
- name: prepare upstream
continue-on-error: true
run: make upstream
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.1
working-directory: provider
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
Expand All @@ -231,7 +225,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -300,7 +294,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -372,7 +366,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down
42 changes: 18 additions & 24 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
GH_ORGANIZATION: ${{ secrets.GH_ORGANIZATION }}
GH_TESTING_TOKEN: ${{ secrets.GH_TESTING_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.20.1
GOVERSION: 1.21.x
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand All @@ -178,34 +178,28 @@ jobs:
aws s3 cp "${{ env.COVERAGE_OUTPUT_DIR }}/summary.json" "${s3FullURI}" --acl bucket-owner-full-control
lint:
container: golangci/golangci-lint:v1.51
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Checkout Scripts Repo
uses: actions/checkout@v3
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER }}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v4
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- run: make lint_provider
go-version: 1.21.x
- name: disarm go:embed directives to enable lint
run: |
git grep -l 'go:embed' -- provider | xargs sed -i 's/go:embed/ goembed/g'
- name: prepare upstream
continue-on-error: true
run: make upstream
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.1
working-directory: provider
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
Expand All @@ -231,7 +225,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -300,7 +294,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -372,7 +366,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down
40 changes: 17 additions & 23 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
GH_ORGANIZATION: ${{ secrets.GH_ORGANIZATION }}
GH_TESTING_TOKEN: ${{ secrets.GH_TESTING_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.20.1
GOVERSION: 1.21.x
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -125,34 +125,28 @@ jobs:
- go
- java
lint:
container: golangci/golangci-lint:v1.51
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Checkout Scripts Repo
uses: actions/checkout@v3
with:
path: ci-scripts
repository: pulumi/scripts
- name: Mark repo as safe directory
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER }}/pulumi-${{ env.PROVIDER }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v4
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- run: make lint_provider
go-version: 1.21.x
- name: disarm go:embed directives to enable lint
run: |
git grep -l 'go:embed' -- provider | xargs sed -i 's/go:embed/ goembed/g'
- name: prepare upstream
continue-on-error: true
run: make upstream
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.1
working-directory: provider
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
Expand All @@ -178,7 +172,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -246,7 +240,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -318,7 +312,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.20.1
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
GH_ORGANIZATION: ${{ secrets.GH_ORGANIZATION }}
GH_TESTING_TOKEN: ${{ secrets.GH_TESTING_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.20.1
GOVERSION: 1.21.x
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down
Loading

0 comments on commit b258fa0

Please sign in to comment.