From 71cb5cb54fbf7a2a9e2187902e49bc3aecd8aefb Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Thu, 16 Nov 2023 08:41:44 -0800 Subject: [PATCH] Update GitHub Actions workflows. (#3012) This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit fe6486e34c17fd36c1aa946e7f995d4aeff2a713. --- .github/workflows/run-acceptance-tests.yml | 5 +++++ Makefile | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index d96def8f8e4..b33d18f9029 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -30,6 +30,11 @@ env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi TRAVIS_OS_NAME: linux + +# This should cancel any previous runs of the same workflow on the same branch which are still running. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build_sdk: if: github.event_name == 'repository_dispatch' || diff --git a/Makefile b/Makefile index c7ab7ecf82d..f833e7dfb3d 100644 --- a/Makefile +++ b/Makefile @@ -106,9 +106,14 @@ install_plugins: .pulumi/bin/pulumi lint_provider: provider cd provider && golangci-lint run -c ../.golangci.yml -provider: tfgen install_plugins +# `make provider_no_deps` builds the provider binary directly, without ensuring that +# `cmd/pulumi-resource-aws/schema.json` is valid and up to date. +# To create a release ready binary, you should use `make provider`. +provider_no_deps: (cd provider && go build $(PULUMI_PROVIDER_BUILD_PARALLELISM) -o $(WORKING_DIR)/bin/$(PROVIDER) -ldflags "-X $(PROJECT)/$(VERSION_PATH)=$(VERSION) -X github.com/hashicorp/terraform-provider-aws/version.ProviderVersion=$(VERSION)" $(PROJECT)/$(PROVIDER_PATH)/cmd/$(PROVIDER)) +provider: tfgen provider_no_deps + test: cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h @@ -163,4 +168,4 @@ ci-mgmt: .ci-mgmt.yaml @mkdir -p .pulumi @cd provider && go list -f "{{slice .Version 1}}" -m github.com/pulumi/pulumi/pkg/v3 | tee ../$@ -.PHONY: development build build_sdks install_go_sdk install_java_sdk install_python_sdk install_sdks only_build build_dotnet build_go build_java build_nodejs build_python clean cleanup help install_dotnet_sdk install_nodejs_sdk install_plugins lint_provider provider test tfgen upstream upstream.finalize upstream.rebase ci-mgmt test_provider +.PHONY: development build build_sdks install_go_sdk install_java_sdk install_python_sdk install_sdks only_build build_dotnet build_go build_java build_nodejs build_python clean cleanup help install_dotnet_sdk install_nodejs_sdk install_plugins lint_provider provider provider_no_deps test tfgen upstream upstream.finalize upstream.rebase ci-mgmt test_provider