Skip to content

Commit

Permalink
Fix tool install
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrbradley committed Oct 23, 2024
1 parent 55f8e39 commit 42580dc
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
53 changes: 53 additions & 0 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Install Languages & Frameworks
description: Installs Go, Pulumi, Node.JS Python and optionally dotnet and Java (if not in quick mode)

inputs:
skip_dotnet_and_java:
description: Set to "true" to skip dotnet and java
# These take 13 and 25 seconds, respectively

runs:
using: "composite"
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache-dependency-path: |
go.sum
- name: Install Pulumi CLI
uses: pulumi/actions@v6
with:
pulumi-version: dev

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Setup DotNet
if: inputs.skip_dotnet_and_java != 'true'
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x

- name: Setup Java
if: inputs.skip_dotnet_and_java != 'true'
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: temurin
cache: gradle

- name: Setup Gradle
if: inputs.skip_dotnet_and_java != 'true'
uses: gradle/gradle-build-action@v3
with:
gradle-version: "8.7"
4 changes: 2 additions & 2 deletions .github/workflows/acceptance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install Languages & Frameworks
uses: pulumi/pulumi-azure-native/.github/actions/install@master
uses: ./.github/actions/install
with:
skip_dotnet_and_java: "true"

Expand Down

0 comments on commit 42580dc

Please sign in to comment.