Skip to content

Commit

Permalink
Update GitHub Actions workflows. (#356)
Browse files Browse the repository at this point in the history
This PR was automatically generated by the
update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
repo, from commit 0b0be71fd3d76a94af154c4dacedfe86fd8eb6f1.
  • Loading branch information
pulumi-bot authored Apr 7, 2024
1 parent 8379984 commit 5ecd98b
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 8 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
- name: Cache examples generation
uses: actions/cache@v4
with:
path: |
.pulumi/examples-cache
key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -209,6 +215,12 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Cache examples generation
uses: actions/cache@v4
with:
path: |
.pulumi/examples-cache
key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }}
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -498,8 +510,8 @@ jobs:
run: |-
pip3 install virtualenv==20.0.23
pip3 install pipenv
- name: Run docker-compose
run: docker-compose -f testing/docker-compose.yml up --build -d
- name: Run docker compose
run: docker compose -f testing/docker-compose.yml up --build -d
- name: Install dependencies
run: make install_${{ matrix.language}}_sdk
- name: Install gotestfmt
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ jobs:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
- name: Cache examples generation
uses: actions/cache@v4
with:
path: |
.pulumi/examples-cache
key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -148,6 +154,12 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Cache examples generation
uses: actions/cache@v4
with:
path: |
.pulumi/examples-cache
key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }}
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -419,8 +431,8 @@ jobs:
run: |-
pip3 install virtualenv==20.0.23
pip3 install pipenv
- name: Run docker-compose
run: docker-compose -f testing/docker-compose.yml up --build -d
- name: Run docker compose
run: docker compose -f testing/docker-compose.yml up --build -d
- name: Install dependencies
run: make install_${{ matrix.language}}_sdk
- name: Install gotestfmt
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
- name: Cache examples generation
uses: actions/cache@v4
with:
path: |
.pulumi/examples-cache
key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -162,6 +168,12 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Cache examples generation
uses: actions/cache@v4
with:
path: |
.pulumi/examples-cache
key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }}
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -467,8 +479,8 @@ jobs:
run: |-
pip3 install virtualenv==20.0.23
pip3 install pipenv
- name: Run docker-compose
run: docker-compose -f testing/docker-compose.yml up --build -d
- name: Run docker compose
run: docker compose -f testing/docker-compose.yml up --build -d
- name: Install dependencies
run: make install_${{ matrix.language}}_sdk
- name: Install gotestfmt
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ jobs:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
- name: Cache examples generation
uses: actions/cache@v4
with:
path: |
.pulumi/examples-cache
key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -172,6 +178,12 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Cache examples generation
uses: actions/cache@v4
with:
path: |
.pulumi/examples-cache
key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }}
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -415,8 +427,8 @@ jobs:
run: |-
pip3 install virtualenv==20.0.23
pip3 install pipenv
- name: Run docker-compose
run: docker-compose -f testing/docker-compose.yml up --build -d
- name: Run docker compose
run: docker compose -f testing/docker-compose.yml up --build -d
- name: Install dependencies
run: make install_${{ matrix.language}}_sdk
- name: Install gotestfmt
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ only_build: build
build_dotnet: DOTNET_VERSION := $(shell pulumictl get version --language dotnet)
build_dotnet: export PULUMI_HOME := $(WORKING_DIR)/.pulumi
build_dotnet: export PATH := $(WORKING_DIR)/.pulumi/bin:$(PATH)
build_dotnet: export PULUMI_CONVERT_EXAMPLES_CACHE_DIR := $(WORKING_DIR)/.pulumi/examples-cache
build_dotnet: upstream
pulumictl get version --language dotnet
PULUMI_CONVERT=$(PULUMI_CONVERT) PULUMI_DISABLE_AUTOMATIC_PLUGIN_ACQUISITION=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/$(TFGEN) dotnet --out sdk/dotnet/
Expand All @@ -42,13 +43,15 @@ build_dotnet: upstream

build_go: export PULUMI_HOME := $(WORKING_DIR)/.pulumi
build_go: export PATH := $(WORKING_DIR)/.pulumi/bin:$(PATH)
build_go: export PULUMI_CONVERT_EXAMPLES_CACHE_DIR := $(WORKING_DIR)/.pulumi/examples-cache
build_go: upstream
PULUMI_CONVERT=$(PULUMI_CONVERT) PULUMI_DISABLE_AUTOMATIC_PLUGIN_ACQUISITION=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/$(TFGEN) go --out sdk/go/
cd sdk && go list "$$(grep -e "^module" go.mod | cut -d ' ' -f 2)/go/..." | xargs -I {} bash -c 'go build {} && go clean -i {}'

build_java: PACKAGE_VERSION := $(shell pulumictl get version --language generic)
build_java: export PULUMI_HOME := $(WORKING_DIR)/.pulumi
build_java: export PATH := $(WORKING_DIR)/.pulumi/bin:$(PATH)
build_java: export PULUMI_CONVERT_EXAMPLES_CACHE_DIR := $(WORKING_DIR)/.pulumi/examples-cache
build_java: bin/pulumi-java-gen upstream
$(WORKING_DIR)/bin/$(JAVA_GEN) generate --schema provider/cmd/$(PROVIDER)/schema.json --out sdk/java --build gradle-nexus
cd sdk/java/ && \
Expand All @@ -58,6 +61,7 @@ build_java: bin/pulumi-java-gen upstream
build_nodejs: VERSION := $(shell pulumictl get version --language javascript)
build_nodejs: export PULUMI_HOME := $(WORKING_DIR)/.pulumi
build_nodejs: export PATH := $(WORKING_DIR)/.pulumi/bin:$(PATH)
build_nodejs: export PULUMI_CONVERT_EXAMPLES_CACHE_DIR := $(WORKING_DIR)/.pulumi/examples-cache
build_nodejs: upstream
PULUMI_CONVERT=$(PULUMI_CONVERT) PULUMI_DISABLE_AUTOMATIC_PLUGIN_ACQUISITION=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/$(TFGEN) nodejs --out sdk/nodejs/
cd sdk/nodejs/ && \
Expand All @@ -70,6 +74,7 @@ build_nodejs: upstream
build_python: PYPI_VERSION := $(shell pulumictl get version --language python)
build_python: export PULUMI_HOME := $(WORKING_DIR)/.pulumi
build_python: export PATH := $(WORKING_DIR)/.pulumi/bin:$(PATH)
build_python: export PULUMI_CONVERT_EXAMPLES_CACHE_DIR := $(WORKING_DIR)/.pulumi/examples-cache
build_python: upstream
rm -rf sdk/python/
PULUMI_CONVERT=$(PULUMI_CONVERT) PULUMI_DISABLE_AUTOMATIC_PLUGIN_ACQUISITION=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/$(TFGEN) python --out sdk/python/
Expand Down Expand Up @@ -139,6 +144,7 @@ tfgen: install_plugins upstream tfgen_no_deps
tfgen_no_deps: export PULUMI_HOME := $(WORKING_DIR)/.pulumi
tfgen_no_deps: export PATH := $(WORKING_DIR)/.pulumi/bin:$(PATH)
tfgen_no_deps: export PULUMI_CONVERT := $(PULUMI_CONVERT)
tfgen_no_deps: export PULUMI_CONVERT_EXAMPLES_CACHE_DIR := $(WORKING_DIR)/.pulumi/examples-cache
tfgen_no_deps: export PULUMI_DISABLE_AUTOMATIC_PLUGIN_ACQUISITION := $(PULUMI_CONVERT)
tfgen_no_deps: tfgen_build_only
$(WORKING_DIR)/bin/$(TFGEN) schema --out provider/cmd/$(PROVIDER)
Expand Down

0 comments on commit 5ecd98b

Please sign in to comment.