From 8ca6229a5f465e513f9b125899c060c7831c2078 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Wed, 15 Nov 2023 21:49:27 -0800 Subject: [PATCH] Update GitHub Actions workflows. (#1454) 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 24db1c76c9..c9a9432a2b 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -35,6 +35,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 aa8d8aa194..d9874c3aa2 100644 --- a/Makefile +++ b/Makefile @@ -104,9 +104,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-azure/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-azurerm/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 @@ -156,4 +161,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