Skip to content

Commit

Permalink
Install terraform for github actions that need it
Browse files Browse the repository at this point in the history
The image in use for our ci actions, ubuntu-latest is now defaulting to
ubuntu-24.04.  In the previous version, terraform was installed by
default but has now been removed so we install it manually for each job
that relies on it.

actions/runner-images#10636
  • Loading branch information
fantapop committed Jan 15, 2025
1 parent 1cf7b02 commit 99912dd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
go-version-file: 'go.mod'
cache: true

- name: Install terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.9.5

- name: Tests
run: make testacc
env:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
with:
go-version: 1.22

- name: Install terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.9.5

- name: Tests
run: make test

Expand All @@ -72,6 +77,12 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4

# Terraform fmt is run on the docs directory
- name: Install terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.9.5

- name: Build docs
run: make generate

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pre-release-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
with:
go-version: 1.22

- name: Install terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.9.5

- name: Tests
run: make testacc
env:
Expand Down

0 comments on commit 99912dd

Please sign in to comment.