Skip to content

Commit

Permalink
Update GitHub Actions workflows. (#398)
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 <[email protected]>
  • Loading branch information
pulumi-bot and iwahbe authored Feb 23, 2024
1 parent 50912cf commit 9a44009
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 24 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,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 @@ -224,6 +224,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 @@ -238,6 +238,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
28 changes: 10 additions & 18 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ import (

"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
tfbridgetokens "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge/tokens"
shim "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim"
shimv2 "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2"
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
"github.com/pulumi/pulumi/sdk/v3/go/common/tokens"
"github.com/pulumi/pulumi/sdk/v3/go/common/util/contract"

Expand Down Expand Up @@ -79,26 +77,20 @@ func makeDataSource(mod string, res string) tokens.ModuleMember {
return makeMember(mod, res)
}

func preConfigureCallback(vars resource.PropertyMap, c shim.ResourceConfig) error {
return nil
}

// Provider returns additional overlaid schema and metadata associated with the provider.
func Provider() tfbridge.ProviderInfo {
p := shimv2.NewProvider(signalfx.Provider())
prov := tfbridge.ProviderInfo{
P: p,
Name: "signalfx",
Description: "A Pulumi package for creating and managing SignalFx resources.",
Keywords: []string{"pulumi", "signalfx"},
License: "Apache-2.0",
Homepage: "https://pulumi.io",
Repository: "https://github.com/pulumi/pulumi-signalfx",
GitHubOrg: "splunk-terraform",
Config: map[string]*tfbridge.SchemaInfo{},
PreConfigureCallback: preConfigureCallback,
Version: version.Version,
MetadataInfo: tfbridge.NewProviderMetadata(metadata),
P: p,
Name: "signalfx",
Description: "A Pulumi package for creating and managing SignalFx resources.",
Keywords: []string{"pulumi", "signalfx"},
License: "Apache-2.0",
Homepage: "https://pulumi.io",
Repository: "https://github.com/pulumi/pulumi-signalfx",
GitHubOrg: "splunk-terraform",
Version: version.Version,
MetadataInfo: tfbridge.NewProviderMetadata(metadata),
Resources: map[string]*tfbridge.ResourceInfo{
"signalfx_dashboard": {Tok: makeResource(mainMod, "Dashboard")},
"signalfx_dashboard_group": {Tok: makeResource(mainMod, "DashboardGroup")},
Expand Down

0 comments on commit 9a44009

Please sign in to comment.