diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 10eea066..e8402677 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -213,6 +213,8 @@ jobs: repo: pulumi/schema-tools - name: Build tfgen & provider binaries run: make provider + - name: Unit-test provider code + run: make test_provider - if: github.event_name == 'pull_request' name: Check Schema is Valid run: | diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 86d5bf6e..4f60e2de 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -160,6 +160,8 @@ jobs: repo: pulumi/schema-tools - name: Build tfgen & provider binaries run: make provider + - name: Unit-test provider code + run: make test_provider - if: github.event_name == 'pull_request' name: Check Schema is Valid run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1fa9ce6a..330052f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -173,6 +173,8 @@ jobs: repo: pulumi/schema-tools - name: Build tfgen & provider binaries run: make provider + - name: Unit-test provider code + run: make test_provider - if: github.event_name == 'pull_request' name: Check Schema is Valid run: | diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index c1b2a5b4..4665b38c 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -186,6 +186,8 @@ jobs: repo: pulumi/schema-tools - name: Build tfgen & provider binaries run: make provider + - name: Unit-test provider code + run: make test_provider - if: github.event_name == 'pull_request' name: Check Schema is Valid run: | diff --git a/.github/workflows/upgrade-bridge.yml b/.github/workflows/upgrade-bridge.yml index 446131f9..75cea22e 100644 --- a/.github/workflows/upgrade-bridge.yml +++ b/.github/workflows/upgrade-bridge.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Call upgrade provider action - uses: pulumi/pulumi-upgrade-provider-action@v0.0.6 + uses: pulumi/pulumi-upgrade-provider-action@v0.0.7 with: kind: bridge - env: diff --git a/.github/workflows/upgrade-provider.yml b/.github/workflows/upgrade-provider.yml index a820365e..4e067abc 100644 --- a/.github/workflows/upgrade-provider.yml +++ b/.github/workflows/upgrade-provider.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Call upgrade provider action - uses: pulumi/pulumi-upgrade-provider-action@v0.0.6 + uses: pulumi/pulumi-upgrade-provider-action@v0.0.7 with: kind: all - env: diff --git a/Makefile b/Makefile index c5e9fb11..6efa59bf 100644 --- a/Makefile +++ b/Makefile @@ -105,6 +105,12 @@ provider: tfgen install_plugins test: cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h +test_provider: + @echo "" + @echo "== test_provider ===================================================================" + @echo "" + cd provider && go test -v -short ./... -parallel $(TESTPARALLELISM) + tfgen: install_plugins upstream (cd provider && go build $(PULUMI_PROVIDER_BUILD_PARALLELISM) -o $(WORKING_DIR)/bin/$(TFGEN) -ldflags "-X $(PROJECT)/$(VERSION_PATH)=$(VERSION)" $(PROJECT)/$(PROVIDER_PATH)/cmd/$(TFGEN)) PATH=${PWD}/.pulumi/bin:$$PATH PULUMI_CONVERT=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/$(TFGEN) schema --out provider/cmd/$(PROVIDER) @@ -145,4 +151,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 +.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