Skip to content

Commit

Permalink
Update GitHub Actions workflows. (#1749)
Browse files Browse the repository at this point in the history
This PR was automatically generated by the
update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
repo, from commit e74fbeeec7b1a562d45502d94fca2dcae9cab776.

---------

Co-authored-by: Ian Wahbe <ian@wahbe.com>
  • Loading branch information
pulumi-bot and iwahbe authored Feb 23, 2024
1 parent 6ccac69 commit 4d51d70
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,13 @@ jobs:
- license_check
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
swap-storage: false
- name: Checkout Repo
uses: actions/checkout@v4
- name: Unshallow clone for tags
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ jobs:
- license_check
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
swap-storage: false
- name: Checkout Repo
uses: actions/checkout@v4
- name: Unshallow clone for tags
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ jobs:
- license_check
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
swap-storage: false
- name: Checkout Repo
uses: actions/checkout@v4
- name: Unshallow clone for tags
Expand Down
9 changes: 3 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,20 @@

linters:
enable:
- deadcode
- errcheck
- gci
- goconst
- gofmt
- golint
- gosec
- govet
- ineffassign
- interfacer
- lll
- megacheck
- misspell
- nakedret
- structcheck
- revive
- unconvert
- varcheck
- gci
- unused
enable-all: false
run:
skip-files:
Expand Down
4 changes: 2 additions & 2 deletions provider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/pulumi/pulumi-azure/provider/v5/pkg/version"
)

func providerServer(t *testing.T) pulumirpc.ResourceProviderServer {
func providerServer() pulumirpc.ResourceProviderServer {
ctx := context.Background()
version.Version = "0.0.1"
info := Provider()
Expand All @@ -33,7 +33,7 @@ func test(t *testing.T, dir string, opts ...providertest.Option) {
opts = append(opts,
providertest.WithProviderName("azure"),
providertest.WithBaselineVersion("5.60.0"),
providertest.WithResourceProviderServer(providerServer(t)),
providertest.WithResourceProviderServer(providerServer()),
providertest.WithSkippedUpgradeTestMode(providertest.UpgradeTestMode_Quick, "Using PreviewOnly mode instead"),
)
ptest := providertest.NewProviderTest(dir, opts...)
Expand Down
2 changes: 1 addition & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ func detectCloudShell() cloudShellProfile {
}

// preConfigureCallback returns an error when cloud provider setup is misconfigured
func preConfigureCallback(vars resource.PropertyMap, c tfshim.ResourceConfig) error {
func preConfigureCallback(vars resource.PropertyMap, _ tfshim.ResourceConfig) error {
envName := tfbridge.ConfigStringValue(vars, "environment", []string{"ARM_ENVIRONMENT"})
if envName == "" {
envName = "public"
Expand Down

0 comments on commit 4d51d70

Please sign in to comment.