Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
env:
PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }}
MISE_ENV: test
GO_TEST_EXEC: "gotestsum --format github-actions --"

#{{ .Config | renderGlobalEnv | indent 2 }}#

Expand Down Expand Up @@ -171,19 +172,18 @@ jobs:
#{{- if .Config.IntegrationTestProvider }}#
- name: Run provider tests
if: matrix.testTarget == 'local'
working-directory: provider
run: go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 .
run: make TESTTAGS=${{ matrix.language }} GOTESTARGS="-count=1 -cover" test_provider
env:
#{{ .Config | renderLocalEnv | indent 8 }}#
#{{- end }}#
- name: Run tests
if: matrix.testTarget == 'local'
run: cd #{{ .Config.TestFolder }}# && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -skip TestPulumiExamples -parallel 4 .
run: make TESTTAGS=${{ matrix.language }} GOTESTARGS="-count=1 -cover -skip TestPulumiExamples" test
env:
#{{ .Config | renderLocalEnv | indent 8 }}#
- name: Run pulumi/examples tests
if: matrix.testTarget == 'pulumiExamples'
run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -run TestPulumiExamples -parallel 4 .
run: make TESTTAGS=${{ matrix.language }} GOTESTARGS="-count=1 -cover -run TestPulumiExamples" test
env:
#{{ .Config | renderLocalEnv | indent 8 }}#
#{{- else }}#
Expand Down
6 changes: 4 additions & 2 deletions provider-ci/internal/pkg/templates/base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ CODEGEN := pulumi-#{{ .Config.GenName }}#-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
TESTPARALLELISM := 10
GOTESTARGS := ""
TESTTAGS ?= all
GO_TEST_EXEC ?= go test
WORKING_DIR := $(shell pwd)
#{{- if .Config.GoBuildParallelism }}#
PULUMI_PROVIDER_BUILD_PARALLELISM ?= -p #{{ .Config.GoBuildParallelism }}#
Expand Down Expand Up @@ -341,13 +343,13 @@ bin/$(PROVIDER): .make/schema

test: export PATH := $(WORKING_DIR)/bin:$(PATH)
test:
cd #{{ .Config.TestFolder }}# && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
cd #{{ .Config.TestFolder }}# && $(GO_TEST_EXEC) -v -tags=$(TESTTAGS) -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
.PHONY: test

#{{- if .Config.TestProviderCmd }}#
test_provider_cmd = #{{ .Config.TestProviderCmd }}#
#{{- else }}#
test_provider_cmd = cd provider && go test -v -short \
test_provider_cmd = cd provider && $(GO_TEST_EXEC) -v -short \
-coverprofile="coverage.txt" \
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
-parallel $(TESTPARALLELISM) \
Expand Down
6 changes: 4 additions & 2 deletions provider-ci/internal/pkg/templates/parameterized-go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ GO_MODULE := $(PROJECT)
PROVIDER := pulumi-resource-$(PACK)
TESTPARALLELISM := 10
GOTESTARGS := ""
TESTTAGS ?= all
GO_TEST_EXEC ?= go test
WORKING_DIR := $(shell pwd)
#{{- if .Config.GoBuildParallelism }}#
PULUMI_PROVIDER_BUILD_PARALLELISM ?= -p #{{ .Config.GoBuildParallelism }}#
Expand Down Expand Up @@ -125,13 +127,13 @@ bin/$(PROVIDER):
$(call build_provider_cmd,$(shell go env GOOS),$(shell go env GOARCH),$(WORKING_DIR)/bin/$(PROVIDER))

test:
cd #{{ .Config.TestFolder }}# && go test -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
cd #{{ .Config.TestFolder }}# && $(GO_TEST_EXEC) -tags=$(TESTTAGS) -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
.PHONY: test

#{{- if .Config.TestProviderCmd }}#
test_provider_cmd = #{{ .Config.TestProviderCmd }}#
#{{- else }}#
test_provider_cmd = go test \
test_provider_cmd = $(GO_TEST_EXEC) \
-coverprofile="coverage.txt" \
-coverpkg="./..." \
-parallel $(TESTPARALLELISM) \
Expand Down
3 changes: 2 additions & 1 deletion provider-ci/test-providers/aws-native/.config/mise.test.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
3 changes: 2 additions & 1 deletion provider-ci/test-providers/aws/.config/mise.test.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
1 change: 1 addition & 0 deletions provider-ci/test-providers/aws/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
env:
PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }}
MISE_ENV: test
GO_TEST_EXEC: "gotestsum --format github-actions --"

AWS_REGION: us-west-2
PULUMI_API: https://api.pulumi-staging.io
Expand Down
6 changes: 4 additions & 2 deletions provider-ci/test-providers/aws/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ CODEGEN := pulumi-tfgen-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
TESTPARALLELISM := 10
GOTESTARGS := ""
TESTTAGS ?= all
GO_TEST_EXEC ?= go test
WORKING_DIR := $(shell pwd)
PULUMI_PROVIDER_BUILD_PARALLELISM ?= -p 2
PULUMI_CONVERT := 1
Expand Down Expand Up @@ -245,9 +247,9 @@ bin/$(PROVIDER): .make/schema

test: export PATH := $(WORKING_DIR)/bin:$(PATH)
test:
cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
cd examples && $(GO_TEST_EXEC) -v -tags=$(TESTTAGS) -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
.PHONY: test
test_provider_cmd = cd provider && go test -v -short \
test_provider_cmd = cd provider && $(GO_TEST_EXEC) -v -short \
-coverprofile="coverage.txt" \
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
-parallel $(TESTPARALLELISM) \
Expand Down
3 changes: 2 additions & 1 deletion provider-ci/test-providers/cloudflare/.config/mise.test.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
env:
PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }}
MISE_ENV: test
GO_TEST_EXEC: "gotestsum --format github-actions --"

PULUMI_API: https://api.pulumi-staging.io
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
Expand Down Expand Up @@ -105,24 +106,23 @@ jobs:
run: make install_${{ matrix.language}}_sdk
- name: Run provider tests
if: matrix.testTarget == 'local'
working-directory: provider
run: go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 .
run: make TESTTAGS=${{ matrix.language }} GOTESTARGS="-count=1 -cover" test_provider
env:
CLOUDFLARE_ACCOUNT_ID: ${{ steps.esc-secrets.outputs.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ steps.esc-secrets.outputs.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ steps.esc-secrets.outputs.CLOUDFLARE_ZONE_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
if: matrix.testTarget == 'local'
run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -skip TestPulumiExamples -parallel 4 .
run: make TESTTAGS=${{ matrix.language }} GOTESTARGS="-count=1 -cover -skip TestPulumiExamples" test
env:
CLOUDFLARE_ACCOUNT_ID: ${{ steps.esc-secrets.outputs.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ steps.esc-secrets.outputs.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ steps.esc-secrets.outputs.CLOUDFLARE_ZONE_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run pulumi/examples tests
if: matrix.testTarget == 'pulumiExamples'
run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -run TestPulumiExamples -parallel 4 .
run: make TESTTAGS=${{ matrix.language }} GOTESTARGS="-count=1 -cover -run TestPulumiExamples" test
env:
CLOUDFLARE_ACCOUNT_ID: ${{ steps.esc-secrets.outputs.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ steps.esc-secrets.outputs.CLOUDFLARE_API_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions provider-ci/test-providers/cloudflare/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ CODEGEN := pulumi-tfgen-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
TESTPARALLELISM := 10
GOTESTARGS := ""
TESTTAGS ?= all
GO_TEST_EXEC ?= go test
WORKING_DIR := $(shell pwd)
PULUMI_PROVIDER_BUILD_PARALLELISM ?=
PULUMI_CONVERT := 1
Expand Down Expand Up @@ -252,9 +254,9 @@ bin/$(PROVIDER): .make/schema

test: export PATH := $(WORKING_DIR)/bin:$(PATH)
test:
cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
cd examples && $(GO_TEST_EXEC) -v -tags=$(TESTTAGS) -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
.PHONY: test
test_provider_cmd = cd provider && go test -v -short \
test_provider_cmd = cd provider && $(GO_TEST_EXEC) -v -short \
-coverprofile="coverage.txt" \
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
-parallel $(TESTPARALLELISM) \
Expand Down
3 changes: 2 additions & 1 deletion provider-ci/test-providers/command/.config/mise.test.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
3 changes: 2 additions & 1 deletion provider-ci/test-providers/docker/.config/mise.test.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
5 changes: 3 additions & 2 deletions provider-ci/test-providers/docker/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
env:
PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }}
MISE_ENV: test
GO_TEST_EXEC: "gotestsum --format github-actions --"

ARM_CLIENT_ID: 30e520fa-12b4-4e21-b473-9426c5ac2e1e
ARM_SUBSCRIPTION_ID: 0282681f-7a9e-424b-80b2-96babd57a8a1
Expand Down Expand Up @@ -137,7 +138,7 @@ jobs:
run: make install_${{ matrix.language}}_sdk
- name: Run tests
if: matrix.testTarget == 'local'
run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -skip TestPulumiExamples -parallel 4 .
run: make TESTTAGS=${{ matrix.language }} GOTESTARGS="-count=1 -cover -skip TestPulumiExamples" test
env:
ARM_CLIENT_SECRET: ${{ steps.esc-secrets.outputs.ARM_CLIENT_SECRET }}
DIGITALOCEAN_TOKEN: ${{ steps.esc-secrets.outputs.DIGITALOCEAN_TOKEN }}
Expand All @@ -146,7 +147,7 @@ jobs:
PRIVATE_SSH_KEY_FOR_DIGITALOCEAN: ${{ steps.esc-secrets.outputs.PRIVATE_SSH_KEY_FOR_DIGITALOCEAN }}
- name: Run pulumi/examples tests
if: matrix.testTarget == 'pulumiExamples'
run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -run TestPulumiExamples -parallel 4 .
run: make TESTTAGS=${{ matrix.language }} GOTESTARGS="-count=1 -cover -run TestPulumiExamples" test
env:
ARM_CLIENT_SECRET: ${{ steps.esc-secrets.outputs.ARM_CLIENT_SECRET }}
DIGITALOCEAN_TOKEN: ${{ steps.esc-secrets.outputs.DIGITALOCEAN_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions provider-ci/test-providers/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ CODEGEN := pulumi-tfgen-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
TESTPARALLELISM := 10
GOTESTARGS := ""
TESTTAGS ?= all
GO_TEST_EXEC ?= go test
WORKING_DIR := $(shell pwd)
PULUMI_PROVIDER_BUILD_PARALLELISM ?=
PULUMI_CONVERT := 1
Expand Down Expand Up @@ -257,9 +259,9 @@ bin/$(PROVIDER): .make/schema

test: export PATH := $(WORKING_DIR)/bin:$(PATH)
test:
cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
cd examples && $(GO_TEST_EXEC) -v -tags=$(TESTTAGS) -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
.PHONY: test
test_provider_cmd = cd provider && go test -v -short \
test_provider_cmd = cd provider && $(GO_TEST_EXEC) -v -short \
-coverprofile="coverage.txt" \
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
-parallel $(TESTPARALLELISM) \
Expand Down
3 changes: 2 additions & 1 deletion provider-ci/test-providers/eks/.config/mise.test.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
1 change: 1 addition & 0 deletions provider-ci/test-providers/eks/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
env:
PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }}
MISE_ENV: test
GO_TEST_EXEC: "gotestsum --format github-actions --"

AWS_REGION: us-west-2
DOTNET_VERSION: 6.x
Expand Down
6 changes: 4 additions & 2 deletions provider-ci/test-providers/eks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ CODEGEN := pulumi-gen-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
TESTPARALLELISM := 10
GOTESTARGS := ""
TESTTAGS ?= all
GO_TEST_EXEC ?= go test
WORKING_DIR := $(shell pwd)
PULUMI_PROVIDER_BUILD_PARALLELISM ?=
PULUMI_CONVERT := 0
Expand Down Expand Up @@ -246,9 +248,9 @@ bin/$(PROVIDER): .make/schema

test: export PATH := $(WORKING_DIR)/bin:$(PATH)
test:
cd tests && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
cd tests && $(GO_TEST_EXEC) -v -tags=$(TESTTAGS) -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
.PHONY: test
test_provider_cmd = cd provider && go test -v -short \
test_provider_cmd = cd provider && $(GO_TEST_EXEC) -v -short \
-coverprofile="coverage.txt" \
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
-parallel $(TESTPARALLELISM) \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
3 changes: 2 additions & 1 deletion provider-ci/test-providers/kubernetes/.config/mise.test.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
env:
PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }}
MISE_ENV: test
GO_TEST_EXEC: "gotestsum --format github-actions --"

PROVIDER: pulumiservice
PULUMI_API: https://api.pulumi-staging.io
Expand Down
6 changes: 4 additions & 2 deletions provider-ci/test-providers/pulumiservice/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ CODEGEN := pulumi-gen-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
TESTPARALLELISM := 10
GOTESTARGS := ""
TESTTAGS ?= all
GO_TEST_EXEC ?= go test
WORKING_DIR := $(shell pwd)
PULUMI_PROVIDER_BUILD_PARALLELISM ?=
PULUMI_CONVERT := 0
Expand Down Expand Up @@ -245,9 +247,9 @@ bin/$(PROVIDER):

test: export PATH := $(WORKING_DIR)/bin:$(PATH)
test:
cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
cd examples && $(GO_TEST_EXEC) -v -tags=$(TESTTAGS) -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
.PHONY: test
test_provider_cmd = cd provider && go test -v -short \
test_provider_cmd = cd provider && $(GO_TEST_EXEC) -v -short \
-coverprofile="coverage.txt" \
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
-parallel $(TESTPARALLELISM) \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
env:
PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }}
MISE_ENV: test
GO_TEST_EXEC: "gotestsum --format github-actions --"

AWS_REGION: us-west-2
PULUMI_API: https://api.pulumi-staging.io
Expand Down
6 changes: 4 additions & 2 deletions provider-ci/test-providers/terraform-module/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ GO_MODULE := $(PROJECT)
PROVIDER := pulumi-resource-$(PACK)
TESTPARALLELISM := 10
GOTESTARGS := ""
TESTTAGS ?= all
GO_TEST_EXEC ?= go test
WORKING_DIR := $(shell pwd)
PULUMI_PROVIDER_BUILD_PARALLELISM ?=

Expand Down Expand Up @@ -106,9 +108,9 @@ bin/$(PROVIDER):
$(call build_provider_cmd,$(shell go env GOOS),$(shell go env GOARCH),$(WORKING_DIR)/bin/$(PROVIDER))

test:
cd tests && go test -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
cd tests && $(GO_TEST_EXEC) -tags=$(TESTTAGS) -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS)
.PHONY: test
test_provider_cmd = go test \
test_provider_cmd = $(GO_TEST_EXEC) \
-coverprofile="coverage.txt" \
-coverpkg="./..." \
-parallel $(TESTPARALLELISM) \
Expand Down
3 changes: 2 additions & 1 deletion provider-ci/test-providers/xyz/.config/mise.test.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

# Overrides for test workflows -- currently empty.
[tools]
"aqua:gotestyourself/gotestsum" = "1.12.0"
Loading
Loading