-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GitHub Actions workflows. (#312)
This PR was automatically generated by the update-workflows-ecosysetem-providers.yml workflow in the pulumi/ci-mgmt repo, from d08fef048b7255d572f34670eec6c43c1c709553.
- Loading branch information
1 parent
0dd97d3
commit 2d9fcea
Showing
5 changed files
with
59 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,34 +177,28 @@ jobs: | |
aws s3 cp "${{ env.COVERAGE_OUTPUT_DIR }}/summary.json" "${s3FullURI}" --acl bucket-owner-full-control | ||
lint: | ||
container: golangci/golangci-lint:v1.54.1 | ||
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.21.x | ||
- 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 | ||
- 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,34 +177,28 @@ jobs: | |
aws s3 cp "${{ env.COVERAGE_OUTPUT_DIR }}/summary.json" "${s3FullURI}" --acl bucket-owner-full-control | ||
lint: | ||
container: golangci/golangci-lint:v1.54.1 | ||
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.21.x | ||
- 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 | ||
- 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,34 +124,28 @@ jobs: | |
- go | ||
- java | ||
lint: | ||
container: golangci/golangci-lint:v1.54.1 | ||
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.21.x | ||
- 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 | ||
- 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,34 +137,28 @@ jobs: | |
run: pulumictl create docs-build pulumi-${{ env.PROVIDER }} | ||
"${GITHUB_REF#refs/tags/}" | ||
lint: | ||
container: golangci/golangci-lint:v1.54.1 | ||
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.21.x | ||
- 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 | ||
- 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,7 +144,6 @@ jobs: | |
repository: ${{ github.event.client_payload.github.payload.repository.full_name }} | ||
token: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
lint: | ||
container: golangci/golangci-lint:v1.54.1 | ||
if: github.event_name == 'repository_dispatch' || | ||
github.event.pull_request.head.repo.full_name == github.repository | ||
name: lint | ||
|
@@ -154,28 +153,24 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ env.PR_COMMIT_SHA }} | ||
- 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 | ||
- 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: Install go | ||
uses: actions/setup-go@v4 | ||
with: | ||
cache-dependency-path: | | ||
sdk/go.sum | ||
go-version: 1.21.x | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
# The versions of golangci-lint and setup-go here cross-depend and need to update together. | ||
go-version: 1.21 | ||
# Either this action or golangci-lint needs to disable the cache | ||
cache: false | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
repo: pulumi/pulumictl | ||
- name: Install Pulumi CLI | ||
uses: pulumi/action-install-pulumi-cli@v2 | ||
- run: make lint_provider | ||
version: v1.54.1 | ||
working-directory: provider | ||
- if: failure() && github.event_name == 'push' | ||
name: Notify Slack | ||
uses: 8398a7/action-slack@v3 | ||
|