-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only run setup for the language under test
The build_sdk and test jobs both use a matrix to run a similar series of steps for each language (Java, go, etc.). But it's not necessary for every step to run for every language; in particular, it's not necessary to set up any language other than the one under consideration.
- Loading branch information
Showing
2 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,30 +189,35 @@ jobs: | |
repository: pulumi/scripts | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{matrix.goversion}} | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
- name: Install Pulumi CLI | ||
uses: pulumi/action-install-pulumi-cli@v2 | ||
- name: Install Go | ||
if: ${{ matrix.language == 'go' }} | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{matrix.goversion}} | ||
- name: Setup Node | ||
if: ${{ matrix.language == 'nodejs' }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{matrix.nodeversion}} | ||
registry-url: https://registry.npmjs.org | ||
- name: Setup DotNet | ||
if: ${{ matrix.language == 'dotnet' }} | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{matrix.dotnetversion}} | ||
- name: Setup Python | ||
if: ${{ matrix.language == 'python' }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.pythonversion}} | ||
- name: Setup Java | ||
if: ${{ matrix.language == 'java' }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{matrix.javaversion}} | ||
|
@@ -291,31 +296,36 @@ jobs: | |
repository: pulumi/scripts | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{matrix.goversion}} | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
- name: Install Pulumi CLI | ||
uses: pulumi/action-install-pulumi-cli@v2 | ||
- name: Install Go | ||
if: ${{ matrix.language == 'go' }} | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{matrix.goversion}} | ||
- name: Setup Node | ||
if: ${{ matrix.language == 'nodejs' }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{matrix.nodeversion}} | ||
registry-url: https://registry.npmjs.org | ||
- name: Setup DotNet | ||
if: ${{ matrix.language == 'dotnet' }} | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{matrix.dotnetversion}} | ||
- name: Setup Python | ||
if: ${{ matrix.language == 'python' }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.pythonversion}} | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
if: ${{ matrix.language == 'java' }} | ||
with: | ||
java-version: ${{matrix.javaversion}} | ||
distribution: temurin | ||
|