Skip to content

Commit 910330a

Browse files
authored
Update GitHub Actions workflows. (#281)
This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 8765da6eb2161be86f6cbda8a9a19988c3ad1a48.
1 parent 589c8c9 commit 910330a

File tree

8 files changed

+19
-5
lines changed

8 files changed

+19
-5
lines changed

.github/workflows/master.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ jobs:
211211
repo: pulumi/schema-tools
212212
- name: Build tfgen & provider binaries
213213
run: make provider
214+
- name: Unit-test provider code
215+
run: make test_provider
214216
- if: github.event_name == 'pull_request'
215217
name: Check Schema is Valid
216218
run: |

.github/workflows/prerelease.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ jobs:
158158
repo: pulumi/schema-tools
159159
- name: Build tfgen & provider binaries
160160
run: make provider
161+
- name: Unit-test provider code
162+
run: make test_provider
161163
- if: github.event_name == 'pull_request'
162164
name: Check Schema is Valid
163165
run: |

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ jobs:
171171
repo: pulumi/schema-tools
172172
- name: Build tfgen & provider binaries
173173
run: make provider
174+
- name: Unit-test provider code
175+
run: make test_provider
174176
- if: github.event_name == 'pull_request'
175177
name: Check Schema is Valid
176178
run: |

.github/workflows/run-acceptance-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ jobs:
184184
repo: pulumi/schema-tools
185185
- name: Build tfgen & provider binaries
186186
run: make provider
187+
- name: Unit-test provider code
188+
run: make test_provider
187189
- if: github.event_name == 'pull_request'
188190
name: Check Schema is Valid
189191
run: |

.github/workflows/upgrade-bridge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Call upgrade provider action
12-
uses: pulumi/pulumi-upgrade-provider-action@v0.0.6
12+
uses: pulumi/pulumi-upgrade-provider-action@v0.0.7
1313
with:
1414
kind: bridge
1515
- env:

.github/workflows/upgrade-provider.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Call upgrade provider action
13-
uses: pulumi/pulumi-upgrade-provider-action@v0.0.6
13+
uses: pulumi/pulumi-upgrade-provider-action@v0.0.7
1414
with:
1515
kind: all
1616
- env:

.upgrade-config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ pulumi-infer-version: true
66
remove-plugins: true
77
pr-reviewers: pulumi/Providers,lukehoban
88

9+
javaVersion: "v0.5.4"

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ provider: tfgen install_plugins
105105
test:
106106
cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h
107107

108+
test_provider:
109+
@echo ""
110+
@echo "== test_provider ==================================================================="
111+
@echo ""
112+
cd provider && go test -v -short ./... -parallel $(TESTPARALLELISM)
113+
108114
tfgen: install_plugins upstream
109115
(cd provider && go build $(PULUMI_PROVIDER_BUILD_PARALLELISM) -o $(WORKING_DIR)/bin/$(TFGEN) -ldflags "-X $(PROJECT)/$(VERSION_PATH)=$(VERSION)" $(PROJECT)/$(PROVIDER_PATH)/cmd/$(TFGEN))
110116
PATH=${PWD}/.pulumi/bin:$$PATH PULUMI_CONVERT=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/$(TFGEN) schema --out provider/cmd/$(PROVIDER)
@@ -137,13 +143,12 @@ ci-mgmt: .ci-mgmt.yaml
137143
--template bridged-provider \
138144
--config $<
139145

140-
.pulumi/bin/pulumi: HOME := $(WORKING_DIR)
141146
.pulumi/bin/pulumi: .pulumi/version
142-
curl -fsSL https://get.pulumi.com | sh -s -- --version $(cat .pulumi/version)
147+
curl -fsSL https://get.pulumi.com | HOME=$(WORKING_DIR) sh -s -- --version $(cat .pulumi/version)
143148

144149
# Compute the version of Pulumi to use by inspecting the Go dependencies of the provider.
145150
.pulumi/version:
146151
@mkdir -p .pulumi
147152
@cd provider && go list -f "{{slice .Version 1}}" -m github.com/pulumi/pulumi/pkg/v3 | tee ../$@
148153

149-
.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
154+
.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

0 commit comments

Comments
 (0)