generated from pulumi/pulumi-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from pulumi/update-github-actions-workflows-119
Update GitHub Actions workflows.
- Loading branch information
Showing
9 changed files
with
88 additions
and
23 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 |
---|---|---|
|
@@ -16,7 +16,7 @@ on: | |
workflow_dispatch: {} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
PROVIDER: docker-native | ||
PROVIDER: dockerbuild | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
@@ -377,6 +377,15 @@ jobs: | |
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GOVERSION }} | ||
- name: Clear GitHub Actions Ubuntu runner disk space | ||
uses: jlumbroso/[email protected] | ||
with: | ||
tool-cache: false | ||
dotnet: false | ||
android: true | ||
haskell: true | ||
swap-storage: true | ||
large-packages: false | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
|
@@ -399,8 +408,7 @@ jobs: | |
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout | ||
60m0s | ||
args: -p 3 -f .goreleaser.prerelease.yml --clean --skip=validate --timeout 60m0s | ||
version: latest | ||
- if: failure() && github.event_name == 'push' | ||
name: Notify Slack | ||
|
@@ -540,3 +548,24 @@ jobs: | |
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
build-root-directory: ./sdk/java | ||
gradle-version: 7.4.1 | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
ref: ${{ env.PR_COMMIT_SHA }} | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GOVERSION }} | ||
- name: golangci-lint provider pkg | ||
uses: golangci/golangci-lint-action@v4 | ||
with: | ||
version: ${{ env.GOLANGCI_LINT_VERSION }} | ||
args: -c ../../.golangci.yml --timeout ${{ env.GOLANGCI_LINT_TIMEOUT }} | ||
working-directory: provider/pkg | ||
name: lint | ||
if: github.event_name == 'repository_dispatch' || | ||
github.event.pull_request.head.repo.full_name == github.repository |
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
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
- v*.*.*-** | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
PROVIDER: docker-native | ||
PROVIDER: dockerbuild | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
@@ -368,6 +368,15 @@ jobs: | |
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GOVERSION }} | ||
- name: Clear GitHub Actions Ubuntu runner disk space | ||
uses: jlumbroso/[email protected] | ||
with: | ||
tool-cache: false | ||
dotnet: false | ||
android: true | ||
haskell: true | ||
swap-storage: true | ||
large-packages: false | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
|
@@ -390,8 +399,7 @@ jobs: | |
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout | ||
60m0s | ||
args: -p 3 -f .goreleaser.prerelease.yml --clean --skip=validate --timeout 60m0s | ||
version: latest | ||
- if: failure() && github.event_name == 'push' | ||
name: Notify Slack | ||
|
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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
- "!v*.*.*-**" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
PROVIDER: docker-native | ||
PROVIDER: dockerbuild | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
@@ -368,6 +368,15 @@ jobs: | |
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GOVERSION }} | ||
- name: Clear GitHub Actions Ubuntu runner disk space | ||
uses: jlumbroso/[email protected] | ||
with: | ||
tool-cache: false | ||
dotnet: false | ||
android: true | ||
haskell: true | ||
swap-storage: true | ||
large-packages: false | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
|
@@ -390,7 +399,7 @@ jobs: | |
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
args: -p 3 release --rm-dist --timeout 60m0s | ||
args: -p 3 release --clean --timeout 60m0s | ||
version: latest | ||
- if: failure() && github.event_name == 'push' | ||
name: Notify Slack | ||
|
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
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
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
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