Skip to content

Commit

Permalink
Only run setup for the language under test
Browse files Browse the repository at this point in the history
  • Loading branch information
squaremo committed Nov 22, 2022
1 parent f69a510 commit e6ca46a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ jobs:
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
if: ${{ matrix.language == 'go' }}
uses: actions/setup-go@v2
with:
go-version: ${{matrix.goversion}}
Expand All @@ -280,19 +281,23 @@ jobs:
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- 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}}
Expand Down

0 comments on commit e6ca46a

Please sign in to comment.