Skip to content

Commit 57f2d87

Browse files
pulumi-bott0yv0
authored andcommitted
[internal] Update GitHub Actions workflow files
1 parent 50435cf commit 57f2d87

File tree

12 files changed

+205
-812
lines changed

12 files changed

+205
-812
lines changed

.github/workflows/command-dispatch.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
22

33
env:
4+
DOTNETVERSION: |
5+
6.0.x
6+
3.1.301
47
GH_ORGANIZATION: ${{ secrets.GH_ORGANIZATION }}
58
GH_TESTING_TOKEN: ${{ secrets.GH_TESTING_TOKEN }}
69
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
GOVERSION: 1.19.x
11+
JAVAVERSION: "11"
12+
NODEVERSION: 16.x
713
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
814
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
915
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
@@ -15,10 +21,12 @@ env:
1521
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
1622
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
1723
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
24+
PYTHONVERSION: "3.9"
1825
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
1926
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
2027
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
2128
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
29+
TF_APPEND_USER_AGENT: pulumi
2230
TRAVIS_OS_NAME: linux
2331
jobs:
2432
command-dispatch-for-testing:

.github/workflows/main.yml

Lines changed: 29 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
22

33
env:
4+
DOTNETVERSION: |
5+
6.0.x
6+
3.1.301
47
GH_ORGANIZATION: ${{ secrets.GH_ORGANIZATION }}
58
GH_TESTING_TOKEN: ${{ secrets.GH_TESTING_TOKEN }}
69
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
GOVERSION: 1.19.x
11+
JAVAVERSION: "11"
12+
NODEVERSION: 16.x
713
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
814
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
915
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
@@ -15,10 +21,12 @@ env:
1521
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
1622
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
1723
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
24+
PYTHONVERSION: "3.9"
1825
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
1926
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
2027
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
2128
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
29+
TF_APPEND_USER_AGENT: pulumi
2230
TRAVIS_OS_NAME: linux
2331
jobs:
2432
build_sdk:
@@ -38,7 +46,7 @@ jobs:
3846
- name: Install Go
3947
uses: actions/setup-go@v2
4048
with:
41-
go-version: ${{matrix.goversion}}
49+
go-version: ${{ env.GOVERSION }}
4250
- name: Install pulumictl
4351
uses: jaxxstorm/[email protected]
4452
with:
@@ -48,22 +56,22 @@ jobs:
4856
- name: Setup Node
4957
uses: actions/setup-node@v2
5058
with:
51-
node-version: ${{matrix.nodeversion}}
59+
node-version: ${{ env.NODEVERSION }}
5260
registry-url: https://registry.npmjs.org
5361
- name: Setup DotNet
5462
uses: actions/setup-dotnet@v1
5563
with:
56-
dotnet-version: ${{matrix.dotnetversion}}
64+
dotnet-version: ${{ env.DOTNETVERSION }}
5765
- name: Setup Python
5866
uses: actions/setup-python@v2
5967
with:
60-
python-version: ${{matrix.pythonversion}}
68+
python-version: ${{ env.PYTHONVERSION }}
6169
- name: Setup Java
6270
uses: actions/setup-java@v3
6371
with:
6472
cache: gradle
6573
distribution: temurin
66-
java-version: ${{matrix.javaversion}}
74+
java-version: ${{ env.JAVAVERSION }}
6775
- name: Download provider + tfgen binaries
6876
uses: actions/download-artifact@v2
6977
with:
@@ -103,22 +111,12 @@ jobs:
103111
strategy:
104112
fail-fast: true
105113
matrix:
106-
dotnetversion:
107-
- 3.1.301
108-
goversion:
109-
- 1.19.x
110-
javaversion:
111-
- "11"
112114
language:
113115
- nodejs
114116
- python
115117
- dotnet
116118
- go
117119
- java
118-
nodeversion:
119-
- 16.x
120-
pythonversion:
121-
- "3.9"
122120
generate_coverage_data:
123121
continue-on-error: true
124122
env:
@@ -145,7 +143,7 @@ jobs:
145143
- name: Install Go
146144
uses: actions/setup-go@v2
147145
with:
148-
go-version: ${{matrix.goversion}}
146+
go-version: ${{ env.GOVERSION }}
149147
- name: Install pulumictl
150148
uses: jaxxstorm/[email protected]
151149
with:
@@ -170,11 +168,6 @@ jobs:
170168
s3FullURI="s3://${{ secrets.S3_COVERAGE_BUCKET_NAME }}/summaries/${summaryName}"
171169
172170
aws s3 cp ${{ env.COVERAGE_OUTPUT_DIR }}/summary.json ${s3FullURI} --acl bucket-owner-full-control
173-
strategy:
174-
fail-fast: true
175-
matrix:
176-
goversion:
177-
- 1.19.x
178171
lint:
179172
container: golangci/golangci-lint:latest
180173
name: lint
@@ -192,7 +185,7 @@ jobs:
192185
- name: Install Go
193186
uses: actions/setup-go@v2
194187
with:
195-
go-version: ${{matrix.goversion}}
188+
go-version: ${{ env.GOVERSION }}
196189
- name: Install pulumictl
197190
uses: jaxxstorm/[email protected]
198191
with:
@@ -207,11 +200,6 @@ jobs:
207200
author_name: Failure in linting provider
208201
fields: repo,commit,author,action
209202
status: ${{ job.status }}
210-
strategy:
211-
fail-fast: true
212-
matrix:
213-
goversion:
214-
- 1.19.x
215203
lint_sdk:
216204
container: golangci/golangci-lint:latest
217205
name: lint-sdk
@@ -230,7 +218,7 @@ jobs:
230218
- name: Install Go
231219
uses: actions/setup-go@v2
232220
with:
233-
go-version: ${{matrix.goversion}}
221+
go-version: ${{ env.GOVERSION }}
234222
- name: Install pulumictl
235223
uses: jaxxstorm/[email protected]
236224
with:
@@ -245,11 +233,6 @@ jobs:
245233
author_name: Failure in linting go sdk
246234
fields: repo,commit,author,action
247235
status: ${{ job.status }}
248-
strategy:
249-
fail-fast: true
250-
matrix:
251-
goversion:
252-
- 1.19.x
253236
prerequisites:
254237
name: prerequisites
255238
runs-on: ubuntu-latest
@@ -266,7 +249,7 @@ jobs:
266249
- name: Install Go
267250
uses: actions/setup-go@v2
268251
with:
269-
go-version: ${{matrix.goversion}}
252+
go-version: ${{ env.GOVERSION }}
270253
- name: Install pulumictl
271254
uses: jaxxstorm/[email protected]
272255
with:
@@ -313,17 +296,6 @@ jobs:
313296
author_name: Failure in building provider prerequisites
314297
fields: repo,commit,author,action
315298
status: ${{ job.status }}
316-
strategy:
317-
fail-fast: true
318-
matrix:
319-
dotnetversion:
320-
- 3.1.301
321-
goversion:
322-
- 1.19.x
323-
nodeversion:
324-
- 16.x
325-
pythonversion:
326-
- "3.9"
327299
publish:
328300
name: publish
329301
needs: test
@@ -336,7 +308,7 @@ jobs:
336308
- name: Install Go
337309
uses: actions/setup-go@v2
338310
with:
339-
go-version: ${{matrix.goversion}}
311+
go-version: ${{ env.GOVERSION }}
340312
- name: Install pulumictl
341313
uses: jaxxstorm/[email protected]
342314
with:
@@ -369,17 +341,6 @@ jobs:
369341
author_name: Failure in publishing binaries
370342
fields: repo,commit,author,action
371343
status: ${{ job.status }}
372-
strategy:
373-
fail-fast: true
374-
matrix:
375-
dotnetversion:
376-
- 3.1.301
377-
goversion:
378-
- 1.19.x
379-
nodeversion:
380-
- 16.x
381-
pythonversion:
382-
- "3.9"
383344
publish_java_sdk:
384345
continue-on-error: true
385346
name: publish_java_sdk
@@ -398,7 +359,7 @@ jobs:
398359
- name: Install Go
399360
uses: actions/setup-go@v2
400361
with:
401-
go-version: ${{matrix.goversion}}
362+
go-version: ${{ env.GOVERSION }}
402363
- name: Install pulumictl
403364
uses: jaxxstorm/[email protected]
404365
with:
@@ -410,7 +371,7 @@ jobs:
410371
with:
411372
cache: gradle
412373
distribution: temurin
413-
java-version: ${{matrix.javaversion}}
374+
java-version: ${{ env.JAVAVERSION }}
414375
- name: Download java SDK
415376
uses: actions/download-artifact@v2
416377
with:
@@ -428,13 +389,6 @@ jobs:
428389
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
429390
build-root-directory: ./sdk/java
430391
gradle-version: 7.4.1
431-
strategy:
432-
fail-fast: true
433-
matrix:
434-
goversion:
435-
- 1.19.x
436-
javaversion:
437-
- "11"
438392
publish_sdk:
439393
name: publish_sdk
440394
needs: publish
@@ -452,7 +406,7 @@ jobs:
452406
- name: Install Go
453407
uses: actions/setup-go@v2
454408
with:
455-
go-version: ${{matrix.goversion}}
409+
go-version: ${{ env.GOVERSION }}
456410
- name: Install pulumictl
457411
uses: jaxxstorm/[email protected]
458412
with:
@@ -462,16 +416,16 @@ jobs:
462416
- name: Setup Node
463417
uses: actions/setup-node@v2
464418
with:
465-
node-version: ${{matrix.nodeversion}}
419+
node-version: ${{ env.NODEVERSION }}
466420
registry-url: https://registry.npmjs.org
467421
- name: Setup DotNet
468422
uses: actions/setup-dotnet@v1
469423
with:
470-
dotnet-version: ${{matrix.dotnetversion}}
424+
dotnet-version: ${{ env.DOTNETVERSION }}
471425
- name: Setup Python
472426
uses: actions/setup-python@v2
473427
with:
474-
python-version: ${{matrix.pythonversion}}
428+
python-version: ${{ env.PYTHONVERSION }}
475429
- name: Download python SDK
476430
uses: actions/download-artifact@v2
477431
with:
@@ -508,17 +462,6 @@ jobs:
508462
author_name: Failure in publishing SDK
509463
fields: repo,commit,author,action
510464
status: ${{ job.status }}
511-
strategy:
512-
fail-fast: true
513-
matrix:
514-
dotnetversion:
515-
- 3.1.301
516-
goversion:
517-
- 1.19.x
518-
nodeversion:
519-
- 16.x
520-
pythonversion:
521-
- "3.9"
522465
test:
523466
name: test
524467
needs: build_sdk
@@ -539,7 +482,7 @@ jobs:
539482
- name: Install Go
540483
uses: actions/setup-go@v2
541484
with:
542-
go-version: ${{matrix.goversion}}
485+
go-version: ${{ env.GOVERSION }}
543486
- name: Install pulumictl
544487
uses: jaxxstorm/[email protected]
545488
with:
@@ -549,22 +492,22 @@ jobs:
549492
- name: Setup Node
550493
uses: actions/setup-node@v2
551494
with:
552-
node-version: ${{matrix.nodeversion}}
495+
node-version: ${{ env.NODEVERSION }}
553496
registry-url: https://registry.npmjs.org
554497
- name: Setup DotNet
555498
uses: actions/setup-dotnet@v1
556499
with:
557-
dotnet-version: ${{matrix.dotnetversion}}
500+
dotnet-version: ${{ env.DOTNETVERSION }}
558501
- name: Setup Python
559502
uses: actions/setup-python@v2
560503
with:
561-
python-version: ${{matrix.pythonversion}}
504+
python-version: ${{ env.PYTHONVERSION }}
562505
- name: Setup Java
563506
uses: actions/setup-java@v3
564507
with:
565508
cache: gradle
566509
distribution: temurin
567-
java-version: ${{matrix.javaversion}}
510+
java-version: ${{ env.JAVAVERSION }}
568511
- name: Download provider + tfgen binaries
569512
uses: actions/download-artifact@v2
570513
with:
@@ -611,22 +554,12 @@ jobs:
611554
strategy:
612555
fail-fast: true
613556
matrix:
614-
dotnetversion:
615-
- 3.1.301
616-
goversion:
617-
- 1.19.x
618-
javaversion:
619-
- "11"
620557
language:
621558
- nodejs
622559
- python
623560
- dotnet
624561
- go
625562
- java
626-
nodeversion:
627-
- 16.x
628-
pythonversion:
629-
- "3.9"
630563
name: main
631564
on:
632565
push:

0 commit comments

Comments
 (0)