diff --git a/.github/actions/setup-tools/action.yml b/.github/actions/setup-tools/action.yml index ec2dddec..642d1d22 100644 --- a/.github/actions/setup-tools/action.yml +++ b/.github/actions/setup-tools/action.yml @@ -9,7 +9,7 @@ inputs: pulumicli pulumictl schema-tools - node + nodejs python dotnet java @@ -48,7 +48,7 @@ runs: repo: pulumi/schema-tools - name: Setup Node - if: inputs.tools == 'all' || contains(inputs.tools, 'node') + if: inputs.tools == 'all' || contains(inputs.tools, 'nodejs') uses: actions/setup-node@v4 with: node-version: 20.x diff --git a/.github/workflows/build_sdk.yml b/.github/workflows/build_sdk.yml index 037c923b..a44df6d3 100644 --- a/.github/workflows/build_sdk.yml +++ b/.github/workflows/build_sdk.yml @@ -54,7 +54,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, node, dotnet, python, java + tools: pulumictl, pulumicli, ${{ matrix.language }} - name: Download bin uses: ./.github/actions/download-bin - name: Install plugins diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 0d4993f9..04e85f1e 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -139,10 +139,11 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, node, dotnet, python, java + tools: pulumictl, pulumicli, ${{ matrix.language }} - name: Download bin uses: ./.github/actions/download-bin - run: dotnet nuget add source ${{ github.workspace }}/nuget + if: matrix.language == 'dotnet' - name: Download SDK uses: ./.github/actions/download-sdk with: @@ -150,6 +151,7 @@ jobs: - name: Update path run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" - name: Install Python deps + if: matrix.language == 'python' run: |- pip3 install virtualenv==20.0.23 pip3 install pipenv diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index cea63aa1..d6400bfa 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -84,7 +84,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, node, dotnet, python, java + tools: pulumictl, pulumicli, nodejs, python, dotnet, go, java - name: Download bin uses: ./.github/actions/download-bin - run: dotnet nuget add source ${{ github.workspace }}/nuget diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6032d6c4..dd9c4491 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -115,7 +115,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, node, dotnet, python, java + tools: pulumictl, pulumicli, nodejs, python, dotnet, go, java - name: Publish SDKs uses: pulumi/pulumi-package-publisher@v0.0.20 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68064c50..623aed51 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,7 +89,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, node, dotnet, python, java + tools: pulumictl, pulumicli, ${{ matrix.language }} - name: Download bin uses: ./.github/actions/download-bin - run: dotnet nuget add source ${{ github.workspace }}/nuget diff --git a/.github/workflows/resync-build.yml b/.github/workflows/resync-build.yml index 1ac17736..124e9bc6 100644 --- a/.github/workflows/resync-build.yml +++ b/.github/workflows/resync-build.yml @@ -40,7 +40,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, node, dotnet, python + tools: pulumictl, pulumicli, go, nodejs, dotnet, python - name: Sync with ci-mgmt run: cp -r "ci-mgmt/provider-ci/providers/$PROVIDER/repo/." . - name: Remove ci-mgmt directory diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index 912e3067..22792aba 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -125,7 +125,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, node, dotnet, python, java + tools: pulumictl, pulumicli, ${{ matrix.language }} - name: Download bin uses: ./.github/actions/download-bin - run: dotnet nuget add source ${{ github.workspace }}/nuget diff --git a/.github/workflows/upgrade-bridge.yml b/.github/workflows/upgrade-bridge.yml index d302ae68..0c47364c 100644 --- a/.github/workflows/upgrade-bridge.yml +++ b/.github/workflows/upgrade-bridge.yml @@ -62,7 +62,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, node, dotnet, python, java + tools: pulumictl, pulumicli, nodejs, python, dotnet, go, java - name: Call upgrade provider action if: github.event_name == 'workflow_dispatch' uses: pulumi/pulumi-upgrade-provider-action@v0.0.12 diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index 3d2599fa..aa7557af 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -71,4 +71,4 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumicli, go, node, dotnet, python, java + tools: pulumicli, nodejs, python, dotnet, go, java diff --git a/.goreleaser.prerelease.yml b/.goreleaser.prerelease.yml deleted file mode 100644 index d2a314cc..00000000 --- a/.goreleaser.prerelease.yml +++ /dev/null @@ -1,43 +0,0 @@ -# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt - -archives: -- id: archive - name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}" -before: - hooks: - - make tfgen -blobs: -- bucket: get.pulumi.com - folder: releases/plugins/ - ids: - - archive - provider: s3 - region: us-west-2 -builds: -- binary: pulumi-resource-mongodbatlas - dir: provider - env: - - CGO_ENABLED=0 - - GO111MODULE=on - goarch: - - amd64 - - arm64 - goos: - - darwin - - windows - - linux - hooks: - post: - - env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -cache - - env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -modcache - ignore: [] - ldflags: - - -X github.com/pulumi/pulumi-mongodbatlas/provider/v3/pkg/version.Version={{.Tag}} - main: ./cmd/pulumi-resource-mongodbatlas/ -changelog: - skip: true -release: - disable: true -snapshot: - name_template: "{{ .Tag }}-SNAPSHOT" -project_name: "pulumi-mongodbatlas" diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index 51c7a07a..00000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,52 +0,0 @@ -# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt - -archives: -- id: archive - name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}" -before: - hooks: - - make tfgen -blobs: -- bucket: get.pulumi.com - folder: releases/plugins/ - ids: - - archive - provider: s3 - region: us-west-2 -builds: -- binary: pulumi-resource-mongodbatlas - dir: provider - env: - - CGO_ENABLED=0 - - GO111MODULE=on - goarch: - - amd64 - - arm64 - goos: - - darwin - - windows - - linux - hooks: - post: - - env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -cache - - env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -modcache - ignore: [] - ldflags: - - -X - github.com/pulumi/pulumi-mongodbatlas/provider/v3/pkg/version.Version={{.Tag}} - main: ./cmd/pulumi-resource-mongodbatlas/ -changelog: - filters: - exclude: - - Merge branch - - Merge pull request - - \Winternal\W - - \Wci\W - - \Wchore\W - sort: asc - use: git -release: - disable: false -snapshot: - name_template: "{{ .Tag }}-SNAPSHOT" -project_name: "pulumi-mongodbatlas" diff --git a/Makefile b/Makefile index ba9c9116..e9e60e99 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ development: install_plugins provider build_sdks install_sdks build: install_plugins provider build_sdks install_sdks -build_sdks: build_nodejs build_python build_go build_dotnet build_java +build_sdks: build_nodejs build_python build_dotnet build_go build_java install_go_sdk: