Skip to content

Commit 4581650

Browse files
authored
Update GitHub Actions workflows. (#4456)
This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 2490813024dfe37d27606bd4d9845b5584abe174.
1 parent 61b99d6 commit 4581650

15 files changed

+50
-118
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
pulumicli
1010
pulumictl
1111
schema-tools
12-
node
12+
nodejs
1313
python
1414
dotnet
1515
java
@@ -48,7 +48,7 @@ runs:
4848
repo: pulumi/schema-tools
4949

5050
- name: Setup Node
51-
if: inputs.tools == 'all' || contains(inputs.tools, 'node')
51+
if: inputs.tools == 'all' || contains(inputs.tools, 'nodejs')
5252
uses: actions/setup-node@v4
5353
with:
5454
node-version: 20.x

.github/workflows/build_sdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Setup tools
6363
uses: ./.github/actions/setup-tools
6464
with:
65-
tools: pulumictl, pulumicli, go, node, dotnet, python, java
65+
tools: pulumictl, pulumicli, ${{ matrix.language }}
6666
- name: Download bin
6767
uses: ./.github/actions/download-bin
6868
- name: Install plugins

.github/workflows/check-upstream-upgrade.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ jobs:
2727
shell: bash
2828
- name: Run upgrade-provider upstream check
2929
id: upstream_version
30-
# Using --repo-path=. skips git pull steps since the Checkout Repo steps has done those.
3130
run: |
32-
upgrade-provider "$REPO" --kind=check-upstream-version --repo-path=.
31+
upgrade-provider "$REPO" --kind=check-upstream-version
3332
env:
3433
REPO: ${{ github.repository }}
3534
shell: bash

.github/workflows/master.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,29 @@ jobs:
149149
- name: Setup tools
150150
uses: ./.github/actions/setup-tools
151151
with:
152-
tools: pulumictl, pulumicli, go, node, dotnet, python, java
152+
tools: pulumictl, pulumicli, ${{ matrix.language }}
153153
- name: Download bin
154154
uses: ./.github/actions/download-bin
155155
- run: dotnet nuget add source ${{ github.workspace }}/nuget
156+
if: matrix.language == 'dotnet'
156157
- name: Download SDK
157158
uses: ./.github/actions/download-sdk
158159
with:
159160
language: ${{ matrix.language }}
160161
- name: Update path
161162
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
162163
- name: Install Python deps
164+
if: matrix.language == 'python'
163165
run: |-
164166
pip3 install virtualenv==20.0.23
165167
pip3 install pipenv
166168
- name: Install dependencies
167169
run: make install_${{ matrix.language}}_sdk
170+
- name: Install gotestfmt
171+
uses: GoTestTools/gotestfmt-action@v2
172+
with:
173+
token: ${{ secrets.GITHUB_TOKEN }}
174+
version: v2.5.0
168175
- name: Configure AWS Credentials
169176
uses: aws-actions/configure-aws-credentials@v4
170177
with:

.github/workflows/nightly-test.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Setup tools
7070
uses: ./.github/actions/setup-tools
7171
with:
72-
tools: pulumictl, pulumicli, go, node, dotnet, python, java
72+
tools: pulumictl, pulumicli, ${{ matrix.language}}
7373
- name: Download bin
7474
uses: ./.github/actions/download-bin
7575
- run: dotnet nuget add source ${{ github.workspace }}/nuget
@@ -85,6 +85,11 @@ jobs:
8585
pip3 install pipenv
8686
- name: Install dependencies
8787
run: make install_${{ matrix.language}}_sdk
88+
- name: Install gotestfmt
89+
uses: GoTestTools/gotestfmt-action@v2
90+
with:
91+
token: ${{ secrets.GITHUB_TOKEN }}
92+
version: v2.5.0
8893
- name: Configure AWS Credentials
8994
uses: aws-actions/configure-aws-credentials@v4
9095
with:
@@ -102,11 +107,11 @@ jobs:
102107
fail-fast: false
103108
matrix:
104109
language:
105-
- nodejs
106-
- python
107-
- dotnet
108-
- go
109-
- java
110+
- nodejs
111+
- python
112+
- dotnet
113+
- go
114+
- java
110115
name: cron
111116
on:
112117
schedule:

.github/workflows/prerelease.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- name: Setup tools
9393
uses: ./.github/actions/setup-tools
9494
with:
95-
tools: pulumictl, pulumicli, go, node, dotnet, python, java
95+
tools: pulumictl, pulumicli, nodejs, python, dotnet, go, java
9696
- name: Download bin
9797
uses: ./.github/actions/download-bin
9898
- run: dotnet nuget add source ${{ github.workspace }}/nuget
@@ -108,6 +108,11 @@ jobs:
108108
pip3 install pipenv
109109
- name: Install dependencies
110110
run: make install_${{ matrix.language}}_sdk
111+
- name: Install gotestfmt
112+
uses: GoTestTools/gotestfmt-action@v2
113+
with:
114+
token: ${{ secrets.GITHUB_TOKEN }}
115+
version: v2.5.0
111116
- name: Configure AWS Credentials
112117
uses: aws-actions/configure-aws-credentials@v4
113118
with:

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
- name: Setup tools
120120
uses: ./.github/actions/setup-tools
121121
with:
122-
tools: pulumictl, pulumicli, go, node, dotnet, python, java
122+
tools: pulumictl, pulumicli, nodejs, python, dotnet, go, java
123123
- name: Publish SDKs
124124
uses: pulumi/[email protected]
125125
with:

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
- name: Setup tools
9898
uses: ./.github/actions/setup-tools
9999
with:
100-
tools: pulumictl, pulumicli, go, node, dotnet, python, java
100+
tools: pulumictl, pulumicli, ${{ matrix.language }}
101101
- name: Download bin
102102
uses: ./.github/actions/download-bin
103103
- run: dotnet nuget add source ${{ github.workspace }}/nuget
@@ -113,6 +113,11 @@ jobs:
113113
pip3 install pipenv
114114
- name: Install dependencies
115115
run: make install_${{ matrix.language}}_sdk
116+
- name: Install gotestfmt
117+
uses: GoTestTools/gotestfmt-action@v2
118+
with:
119+
token: ${{ secrets.GITHUB_TOKEN }}
120+
version: v2.5.0
116121
- name: Configure AWS Credentials
117122
uses: aws-actions/configure-aws-credentials@v4
118123
with:

.github/workflows/resync-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup tools
4343
uses: ./.github/actions/setup-tools
4444
with:
45-
tools: pulumictl, pulumicli, go, node, dotnet, python
45+
tools: pulumictl, pulumicli, go, nodejs, dotnet, python
4646
- name: Sync with ci-mgmt
4747
run: cp -r "ci-mgmt/provider-ci/providers/$PROVIDER/repo/." .
4848
- name: Remove ci-mgmt directory

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,30 @@ jobs:
129129
- name: Setup tools
130130
uses: ./.github/actions/setup-tools
131131
with:
132-
tools: pulumictl, pulumicli, go, node, dotnet, python, java
132+
tools: pulumictl, pulumicli, ${{ matrix.language }}
133133
- name: Download bin
134134
uses: ./.github/actions/download-bin
135-
- run: dotnet nuget add source ${{ github.workspace }}/nuget
135+
- name: Add NuGet source
136+
if: matrix.language == 'dotnet'
137+
run: dotnet nuget add source ${{ github.workspace }}/nuget
136138
- name: Download SDK
137139
uses: ./.github/actions/download-sdk
138140
with:
139141
language: ${{ matrix.language }}
140142
- name: Update path
141143
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
142144
- name: Install Python deps
145+
if: matrix.language == 'python'
143146
run: |-
144147
pip3 install virtualenv==20.0.23
145148
pip3 install pipenv
146149
- name: Install dependencies
147150
run: make install_${{ matrix.language}}_sdk
151+
- name: Install gotestfmt
152+
uses: GoTestTools/gotestfmt-action@v2
153+
with:
154+
token: ${{ secrets.GITHUB_TOKEN }}
155+
version: v2.5.0
148156
- name: Configure AWS Credentials
149157
uses: aws-actions/configure-aws-credentials@v4
150158
with:

0 commit comments

Comments
 (0)