Skip to content

Commit 5ceac82

Browse files
pulumi-bott0yv0
authored andcommitted
[internal] Update GitHub Actions workflow files
1 parent c567712 commit 5ceac82

File tree

10 files changed

+170
-523
lines changed

10 files changed

+170
-523
lines changed

.github/workflows/command-dispatch.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
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
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8+
GOVERSION: 1.19.x
9+
JAVAVERSION: "11"
10+
NODEVERSION: 16.x
511
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
612
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
713
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
@@ -13,6 +19,7 @@ env:
1319
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
1420
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
1521
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
22+
PYTHONVERSION: "3.9"
1623
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
1724
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
1825
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}

.github/workflows/main.yml

Lines changed: 28 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
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
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8+
GOVERSION: 1.19.x
9+
JAVAVERSION: "11"
10+
NODEVERSION: 16.x
511
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
612
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
713
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
@@ -13,6 +19,7 @@ env:
1319
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
1420
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
1521
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
22+
PYTHONVERSION: "3.9"
1623
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
1724
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
1825
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
@@ -37,7 +44,7 @@ jobs:
3744
- name: Install Go
3845
uses: actions/setup-go@v2
3946
with:
40-
go-version: ${{matrix.goversion}}
47+
go-version: ${{ env.GOVERSION }}
4148
- name: Install pulumictl
4249
uses: jaxxstorm/action-install-gh-release@v1.5.0
4350
with:
@@ -47,22 +54,22 @@ jobs:
4754
- name: Setup Node
4855
uses: actions/setup-node@v2
4956
with:
50-
node-version: ${{matrix.nodeversion}}
57+
node-version: ${{ env.NODEVERSION }}
5158
registry-url: https://registry.npmjs.org
5259
- name: Setup DotNet
5360
uses: actions/setup-dotnet@v1
5461
with:
55-
dotnet-version: ${{matrix.dotnetversion}}
62+
dotnet-version: ${{ env.DOTNETVERSION }}
5663
- name: Setup Python
5764
uses: actions/setup-python@v2
5865
with:
59-
python-version: ${{matrix.pythonversion}}
66+
python-version: ${{ env.PYTHONVERSION }}
6067
- name: Setup Java
6168
uses: actions/setup-java@v3
6269
with:
6370
cache: gradle
6471
distribution: temurin
65-
java-version: ${{matrix.javaversion}}
72+
java-version: ${{ env.JAVAVERSION }}
6673
- name: Download provider + tfgen binaries
6774
uses: actions/download-artifact@v2
6875
with:
@@ -102,24 +109,12 @@ jobs:
102109
strategy:
103110
fail-fast: true
104111
matrix:
105-
dotnetversion:
106-
- |
107-
6.0.x
108-
3.1.301
109-
goversion:
110-
- 1.19.x
111-
javaversion:
112-
- "11"
113112
language:
114113
- nodejs
115114
- python
116115
- dotnet
117116
- go
118117
- java
119-
nodeversion:
120-
- 16.x
121-
pythonversion:
122-
- "3.9"
123118
generate_coverage_data:
124119
continue-on-error: true
125120
env:
@@ -146,7 +141,7 @@ jobs:
146141
- name: Install Go
147142
uses: actions/setup-go@v2
148143
with:
149-
go-version: ${{matrix.goversion}}
144+
go-version: ${{ env.GOVERSION }}
150145
- name: Install pulumictl
151146
uses: jaxxstorm/action-install-gh-release@v1.5.0
152147
with:
@@ -171,11 +166,6 @@ jobs:
171166
s3FullURI="s3://${{ secrets.S3_COVERAGE_BUCKET_NAME }}/summaries/${summaryName}"
172167
173168
aws s3 cp ${{ env.COVERAGE_OUTPUT_DIR }}/summary.json ${s3FullURI} --acl bucket-owner-full-control
174-
strategy:
175-
fail-fast: true
176-
matrix:
177-
goversion:
178-
- 1.19.x
179169
lint:
180170
container: golangci/golangci-lint:latest
181171
name: lint
@@ -193,7 +183,7 @@ jobs:
193183
- name: Install Go
194184
uses: actions/setup-go@v2
195185
with:
196-
go-version: ${{matrix.goversion}}
186+
go-version: ${{ env.GOVERSION }}
197187
- name: Install pulumictl
198188
uses: jaxxstorm/action-install-gh-release@v1.5.0
199189
with:
@@ -208,11 +198,6 @@ jobs:
208198
author_name: Failure in linting provider
209199
fields: repo,commit,author,action
210200
status: ${{ job.status }}
211-
strategy:
212-
fail-fast: true
213-
matrix:
214-
goversion:
215-
- 1.19.x
216201
lint_sdk:
217202
container: golangci/golangci-lint:latest
218203
name: lint-sdk
@@ -231,7 +216,7 @@ jobs:
231216
- name: Install Go
232217
uses: actions/setup-go@v2
233218
with:
234-
go-version: ${{matrix.goversion}}
219+
go-version: ${{ env.GOVERSION }}
235220
- name: Install pulumictl
236221
uses: jaxxstorm/action-install-gh-release@v1.5.0
237222
with:
@@ -246,11 +231,6 @@ jobs:
246231
author_name: Failure in linting go sdk
247232
fields: repo,commit,author,action
248233
status: ${{ job.status }}
249-
strategy:
250-
fail-fast: true
251-
matrix:
252-
goversion:
253-
- 1.19.x
254234
prerequisites:
255235
name: prerequisites
256236
runs-on: ubuntu-latest
@@ -267,7 +247,7 @@ jobs:
267247
- name: Install Go
268248
uses: actions/setup-go@v2
269249
with:
270-
go-version: ${{matrix.goversion}}
250+
go-version: ${{ env.GOVERSION }}
271251
- name: Install pulumictl
272252
uses: jaxxstorm/action-install-gh-release@v1.5.0
273253
with:
@@ -314,19 +294,6 @@ jobs:
314294
author_name: Failure in building provider prerequisites
315295
fields: repo,commit,author,action
316296
status: ${{ job.status }}
317-
strategy:
318-
fail-fast: true
319-
matrix:
320-
dotnetversion:
321-
- |
322-
6.0.x
323-
3.1.301
324-
goversion:
325-
- 1.19.x
326-
nodeversion:
327-
- 16.x
328-
pythonversion:
329-
- "3.9"
330297
publish:
331298
name: publish
332299
needs: test
@@ -339,7 +306,7 @@ jobs:
339306
- name: Install Go
340307
uses: actions/setup-go@v2
341308
with:
342-
go-version: ${{matrix.goversion}}
309+
go-version: ${{ env.GOVERSION }}
343310
- name: Install pulumictl
344311
uses: jaxxstorm/action-install-gh-release@v1.5.0
345312
with:
@@ -372,19 +339,6 @@ jobs:
372339
author_name: Failure in publishing binaries
373340
fields: repo,commit,author,action
374341
status: ${{ job.status }}
375-
strategy:
376-
fail-fast: true
377-
matrix:
378-
dotnetversion:
379-
- |
380-
6.0.x
381-
3.1.301
382-
goversion:
383-
- 1.19.x
384-
nodeversion:
385-
- 16.x
386-
pythonversion:
387-
- "3.9"
388342
publish_java_sdk:
389343
continue-on-error: true
390344
name: publish_java_sdk
@@ -403,7 +357,7 @@ jobs:
403357
- name: Install Go
404358
uses: actions/setup-go@v2
405359
with:
406-
go-version: ${{matrix.goversion}}
360+
go-version: ${{ env.GOVERSION }}
407361
- name: Install pulumictl
408362
uses: jaxxstorm/action-install-gh-release@v1.5.0
409363
with:
@@ -415,7 +369,7 @@ jobs:
415369
with:
416370
cache: gradle
417371
distribution: temurin
418-
java-version: ${{matrix.javaversion}}
372+
java-version: ${{ env.JAVAVERSION }}
419373
- name: Download java SDK
420374
uses: actions/download-artifact@v2
421375
with:
@@ -433,13 +387,6 @@ jobs:
433387
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
434388
build-root-directory: ./sdk/java
435389
gradle-version: 7.4.1
436-
strategy:
437-
fail-fast: true
438-
matrix:
439-
goversion:
440-
- 1.19.x
441-
javaversion:
442-
- "11"
443390
publish_sdk:
444391
name: publish_sdk
445392
needs: publish
@@ -457,7 +404,7 @@ jobs:
457404
- name: Install Go
458405
uses: actions/setup-go@v2
459406
with:
460-
go-version: ${{matrix.goversion}}
407+
go-version: ${{ env.GOVERSION }}
461408
- name: Install pulumictl
462409
uses: jaxxstorm/action-install-gh-release@v1.5.0
463410
with:
@@ -467,16 +414,16 @@ jobs:
467414
- name: Setup Node
468415
uses: actions/setup-node@v2
469416
with:
470-
node-version: ${{matrix.nodeversion}}
417+
node-version: ${{ env.NODEVERSION }}
471418
registry-url: https://registry.npmjs.org
472419
- name: Setup DotNet
473420
uses: actions/setup-dotnet@v1
474421
with:
475-
dotnet-version: ${{matrix.dotnetversion}}
422+
dotnet-version: ${{ env.DOTNETVERSION }}
476423
- name: Setup Python
477424
uses: actions/setup-python@v2
478425
with:
479-
python-version: ${{matrix.pythonversion}}
426+
python-version: ${{ env.PYTHONVERSION }}
480427
- name: Download python SDK
481428
uses: actions/download-artifact@v2
482429
with:
@@ -513,19 +460,6 @@ jobs:
513460
author_name: Failure in publishing SDK
514461
fields: repo,commit,author,action
515462
status: ${{ job.status }}
516-
strategy:
517-
fail-fast: true
518-
matrix:
519-
dotnetversion:
520-
- |
521-
6.0.x
522-
3.1.301
523-
goversion:
524-
- 1.19.x
525-
nodeversion:
526-
- 16.x
527-
pythonversion:
528-
- "3.9"
529463
test:
530464
name: test
531465
needs: build_sdk
@@ -546,7 +480,7 @@ jobs:
546480
- name: Install Go
547481
uses: actions/setup-go@v2
548482
with:
549-
go-version: ${{matrix.goversion}}
483+
go-version: ${{ env.GOVERSION }}
550484
- name: Install pulumictl
551485
uses: jaxxstorm/action-install-gh-release@v1.5.0
552486
with:
@@ -556,22 +490,22 @@ jobs:
556490
- name: Setup Node
557491
uses: actions/setup-node@v2
558492
with:
559-
node-version: ${{matrix.nodeversion}}
493+
node-version: ${{ env.NODEVERSION }}
560494
registry-url: https://registry.npmjs.org
561495
- name: Setup DotNet
562496
uses: actions/setup-dotnet@v1
563497
with:
564-
dotnet-version: ${{matrix.dotnetversion}}
498+
dotnet-version: ${{ env.DOTNETVERSION }}
565499
- name: Setup Python
566500
uses: actions/setup-python@v2
567501
with:
568-
python-version: ${{matrix.pythonversion}}
502+
python-version: ${{ env.PYTHONVERSION }}
569503
- name: Setup Java
570504
uses: actions/setup-java@v3
571505
with:
572506
cache: gradle
573507
distribution: temurin
574-
java-version: ${{matrix.javaversion}}
508+
java-version: ${{ env.JAVAVERSION }}
575509
- name: Download provider + tfgen binaries
576510
uses: actions/download-artifact@v2
577511
with:
@@ -620,24 +554,12 @@ jobs:
620554
strategy:
621555
fail-fast: true
622556
matrix:
623-
dotnetversion:
624-
- |
625-
6.0.x
626-
3.1.301
627-
goversion:
628-
- 1.19.x
629-
javaversion:
630-
- "11"
631557
language:
632558
- nodejs
633559
- python
634560
- dotnet
635561
- go
636562
- java
637-
nodeversion:
638-
- 16.x
639-
pythonversion:
640-
- "3.9"
641563
name: main
642564
on:
643565
push:

0 commit comments

Comments
 (0)