Skip to content

Commit 039be54

Browse files
committed
[internal] Update GitHub Actions workflow files
1 parent d194a7c commit 039be54

23 files changed

+328
-283
lines changed

.ci-mgmt.yaml

Lines changed: 29 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,13 @@ shards: 8
66
timeout: 150
77
generate-nightly-test-workflow: true
88
providerVersion: github.com/hashicorp/terraform-provider-aws/version.ProviderVersion
9-
109
buildProviderPre: "VERSION=${VERSION_GENERIC} ./scripts/minimal_schema.sh"
11-
12-
toolVersions:
13-
go: "1.23.x"
14-
java: "11"
15-
gradle: "7.6"
16-
nodejs: "20.x"
17-
pulumi: "3.187.0"
18-
python: "3.11.8"
1910
esc:
20-
enabled: true
11+
enabled: true
2112
env:
22-
PULUMI_MISSING_DOCS_ERROR: true
23-
AWS_REGION: "us-west-2"
24-
OIDC_ROLE_ARN: ${{ secrets.OIDC_ROLE_ARN }}
13+
PULUMI_MISSING_DOCS_ERROR: true
14+
AWS_REGION: "us-west-2"
15+
OIDC_ROLE_ARN: ${{ secrets.OIDC_ROLE_ARN }}
2516
makeTemplate: bridged
2617
checkoutSubmodules: true
2718
freeDiskSpaceBeforeBuild: true
@@ -31,36 +22,35 @@ freeDiskSpaceBeforeTest: true
3122
# Tracked in in https://github.com/pulumi/pulumi-aws/issues/2757
3223
XrunUpstreamTools: true
3324
plugins:
34-
- name: archive
35-
version: "0.0.1"
36-
- name: tls
37-
version: "4.10.0"
38-
- name: github
39-
version: "4.10.0"
40-
- name: kubernetes
41-
version: "4.11.0"
42-
- name: "null"
43-
version: "0.0.3"
44-
- name: "local"
45-
version: "0.1.0"
46-
- name: random
47-
version: "4.8.2"
48-
- name: github
49-
version: "5.14.0"
50-
- name: std
51-
version: "1.6.2"
52-
- name: terraform
53-
version: "1.0.17"
54-
kind: converter
25+
- name: archive
26+
version: "0.0.1"
27+
- name: tls
28+
version: "4.10.0"
29+
- name: github
30+
version: "4.10.0"
31+
- name: kubernetes
32+
version: "4.11.0"
33+
- name: "null"
34+
version: "0.0.3"
35+
- name: "local"
36+
version: "0.1.0"
37+
- name: random
38+
version: "4.8.2"
39+
- name: github
40+
version: "5.14.0"
41+
- name: std
42+
version: "1.6.2"
43+
- name: terraform
44+
version: "1.0.17"
45+
kind: converter
5546
# Use `pulumi convert` for translating examples from TF to Pulumi.
5647
pulumiConvert: 1
5748
allowMissingDocs: false
5849
goBuildParallelism: 2
5950
aws: true
60-
6151
releaseVerification:
62-
nodejs: examples/release-verification
63-
python: examples/webserver-py
64-
dotnet: examples/webserver-cs
65-
go: examples/webserver-go
52+
nodejs: examples/release-verification
53+
python: examples/webserver-py
54+
dotnet: examples/webserver-cs
55+
go: examples/webserver-go
6656
autoMergeProviderUpgrades: false

.config/mise.lock

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[[tools.dotnet]]
2+
version = "8.0.414"
3+
backend = "asdf:dotnet"
4+
5+
[[tools."github:pulumi/pulumictl"]]
6+
version = "0.0.50"
7+
backend = "github:pulumi/pulumictl"
8+
9+
[tools."github:pulumi/pulumictl".platforms.linux-x64]
10+
checksum = "blake3:c128dd74993f779c613296fe7cd21c20cbd323f24e59cb76e007620660b60348"
11+
size = 27744219
12+
url = "https://github.com/pulumi/pulumictl/releases/download/v0.0.50/pulumictl-v0.0.50-linux-amd64.tar.gz"
13+
14+
[[tools."github:pulumi/schema-tools"]]
15+
version = "0.6.0"
16+
backend = "github:pulumi/schema-tools"
17+
18+
[tools."github:pulumi/schema-tools".platforms.linux-x64]
19+
checksum = "blake3:82dfe616fee18b4258f6e3d2dc3c4e9f14afd43a0a4cc33eff2d2a04088d6ca3"
20+
size = 14282746
21+
url = "https://github.com/pulumi/schema-tools/releases/download/v0.6.0/schema-tools-v0.6.0-linux-amd64.tar.gz"
22+
23+
[[tools.go]]
24+
version = "1.24.6"
25+
backend = "core:go"
26+
27+
[tools.go.platforms.linux-x64]
28+
checksum = "sha256:bbca37cc395c974ffa4893ee35819ad23ebb27426df87af92e93a9ec66ef8712"
29+
size = 78583176
30+
url = "https://dl.google.com/go/go1.24.6.linux-amd64.tar.gz"
31+
32+
[[tools.golangci-lint]]
33+
version = "1.64.8"
34+
backend = "aqua:golangci/golangci-lint"
35+
36+
[tools.golangci-lint.platforms.linux-x64]
37+
checksum = "sha256:b6270687afb143d019f387c791cd2a6f1cb383be9b3124d241ca11bd3ce2e54e"
38+
size = 12364828
39+
url = "https://github.com/golangci/golangci-lint/releases/download/v1.64.8/golangci-lint-1.64.8-linux-amd64.tar.gz"

.config/mise.test.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
2+
3+
# Overrides tool versions for test workflows
4+
5+
[tools]
6+
# always use pulumi latest for tests
7+
pulumi = "latest"

.config/mise.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
2+
# You can create your own root-level mise.toml file to override/augment this. See https://mise.jdx.dev/configuration.html
3+
4+
[env]
5+
_.source = "{{config_root}}/scripts/get-versions.sh"
6+
7+
[tools]
8+
9+
# Runtimes
10+
# TODO: we may not need `get_env` once https://github.com/jdx/mise/discussions/6339 is fixed
11+
go = "{{ get_env(name='GO_VERSION_MISE', default='latest') }}"
12+
node = '20'
13+
python = '3.11.8'
14+
dotnet = '8.0'
15+
# Corretto version used as Java SE/OpenJDK version no longer offered
16+
java = 'corretto-11'
17+
18+
# Executable tools
19+
pulumi = "{{ get_env(name='PULUMI_VERSION_MISE', default='latest') }}"
20+
"github:pulumi/pulumictl" = 'latest'
21+
"github:pulumi/schema-tools" = "latest"
22+
gradle = '7.6'
23+
golangci-lint = "1.64.8" # See note about about overrides if you need to customize this.
24+
25+
[settings]
26+
experimental = true # Required for Go binaries (e.g. pulumictl).
27+
lockfile = true

.github/actions/setup-tools/action.yml

Lines changed: 0 additions & 91 deletions
This file was deleted.

.github/workflows/build_provider.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,13 @@ jobs:
6565
- uses: MOZGIII/install-ldid-action@v1
6666
with:
6767
tag: v2.1.5-procursus2
68-
- name: Setup tools
69-
uses: ./.github/actions/setup-tools
68+
- name: Setup mise
69+
uses: jdx/mise-action@v3
7070
with:
71-
tools: pulumictl, go
72-
# use per-platform/arch caches instead since we are doing cross-builds
73-
cache-go: false
71+
github_token: ${{ secrets.GITHUB_TOKEN }}
72+
cache_key: "mise-{{platform}}-{{file_hash}}"
73+
# only saving the cache in the prerequisites job
74+
cache_save: false
7475
# Based on https://github.com/actions/cache/blob/main/examples.md#go---modules
7576
- name: Get GOCACHE
7677
id: gocache

.github/workflows/build_sdk.yml

Lines changed: 19 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,28 @@ jobs:
5959
name: Fetch secrets from ESC
6060
uses: pulumi/esc-action@9eb774255b1a4afb7855678ae8d4a77359da0d9b
6161
- name: Cache examples generation
62-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
62+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
6363
with:
6464
path: |
6565
.pulumi/examples-cache
6666
key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }}
67-
- name: Setup tools
68-
uses: ./.github/actions/setup-tools
67+
- name: Setup mise
68+
uses: jdx/mise-action@v3
6969
with:
70-
tools: pulumictl, pulumicli, ${{ matrix.language }}
70+
github_token: ${{ secrets.GITHUB_TOKEN }}
71+
cache_key: "mise-{{platform}}-{{file_hash}}"
72+
# only saving the cache in the prerequisites job
73+
cache_save: false
74+
- name: Setup Go Cache
75+
if: matrix.language == 'go' || contains(matrix.language, 'go')
76+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
77+
with:
78+
cache-dependency-path: |
79+
provider/*.sum
80+
upstream/*.sum
81+
sdk/go/*.sum
82+
sdk/*.sum
83+
*.sum
7184
- name: Prepare local workspace
7285
run: make prepare_local_workspace
7386
env:
@@ -93,46 +106,8 @@ jobs:
93106
sdk/nodejs/package.json
94107
sdk/python/pyproject.toml
95108
sdk/java/build.gradle
96-
- name: Commit Java SDK changes for migration to pulumi package gen-sdk
97-
if: failure() && steps.worktreeClean.outcome == 'failure' && matrix.language == 'java' && contains(github.actor, 'pulumi-bot') && github.event_name == 'pull_request'
98-
shell: bash
99-
run: >
100-
git diff --quiet -- sdk/java && echo "no changes to sdk/java" && exit
101-
102-
git config --global user.email "[email protected]"
103-
104-
git config --global user.name "pulumi-bot"
105-
106-
# Stash local changes and check out the PR's branch directly.
107-
108-
git stash
109-
110-
git fetch
111-
112-
git checkout "origin/$HEAD_REF"
113-
114-
# Apply and add our changes, but don't commit any files we expect to
115-
116-
# always change due to versioning.
117-
118-
git stash pop
119-
120-
git add sdk/java
121-
122-
rm .pulumi-java-gen.version
123-
124-
git add .pulumi-java-gen.version
125-
126-
git commit -m "Commit Java changes for pulumi package sdk-gen"
127-
128-
# Push with pulumi-bot credentials to trigger a re-run of the
129-
# workflow. https://github.com/orgs/community/discussions/25702
130-
131-
git push https://pulumi-bot:${{ steps.esc-secrets.outputs.PULUMI_BOT_TOKEN }}@github.com/${{ github.repository }} "HEAD:$HEAD_REF"
132-
# head_ref is untrusted so it's recommended to pass via env var to
133-
# avoid injections.
134-
env:
135-
HEAD_REF: ${{ github.head_ref }}
109+
**/mise.lock
110+
**/mise.*.lock
136111
- name: Commit ${{ matrix.language }} SDK changes for Renovate
137112
# If the worktree is dirty and this is a Renovate PR to bump
138113
# dependencies, commit the updated SDK and push it back to the PR. The

.github/workflows/comment-on-stale-issues.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
name: Stale issue job
1111
steps:
12-
- uses: aws-actions/stale-issue-cleanup@5650b49bcd757a078f6ca06c373d7807b773f9bc #v7.1.0
12+
- uses: aws-actions/stale-issue-cleanup@5650b49bcd757a078f6ca06c373d7807b773f9bc # v7.1.0
1313
with:
1414
issue-types: issues # only look at issues (ignore pull-requests)
1515

.github/workflows/copilot-setup-steps.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ jobs:
3232
with:
3333
persist-credentials: false
3434

35-
- name: Setup tools
36-
uses: ./.github/actions/setup-tools
35+
- name: Setup mise
36+
uses: jdx/mise-action@v3
3737
with:
38-
tools: pulumictl, pulumicli, nodejs, python, dotnet, go, java
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
cache_key: "mise-{{platform}}-{{file_hash}}"
40+
# only saving the cache in the prerequisites job
41+
cache_save: false
3942

4043
- name: Prepare local workspace
4144
# this runs install_plugins and upstream

0 commit comments

Comments
 (0)