Skip to content

Commit f65e4d1

Browse files
committed
chore(ci): install terraform as missin in GH workers
1 parent 3cddaab commit f65e4d1

File tree

2 files changed

+31
-21
lines changed

2 files changed

+31
-21
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
runs-on: ubuntu-latest
2626
timeout-minutes: 5
2727
steps:
28+
- name: Check out code into the Go module directory
29+
uses: actions/checkout@v4
30+
id: checkout
2831

2932
- name: Set up Go
3033
uses: actions/setup-go@v5
@@ -33,8 +36,9 @@ jobs:
3336
check-latest: true
3437
id: go
3538

36-
- name: Check out code into the Go module directory
37-
uses: actions/checkout@v4
39+
- name: Setup Terraform
40+
uses: hashicorp/setup-terraform@v3
41+
id: terraform
3842

3943
- name: Get dependencies
4044
run: |
@@ -47,14 +51,20 @@ jobs:
4751
generate:
4852
runs-on: ubuntu-latest
4953
steps:
54+
- name: Check out code into the Go module directory
55+
uses: actions/checkout@v4
56+
id: checkout
57+
5058
- name: Set up Go
5159
uses: actions/setup-go@v5
5260
with:
5361
go-version: '1.23'
5462
check-latest: true
63+
id: go
5564

56-
- name: Check out code into the Go module directory
57-
uses: actions/checkout@v4
65+
- name: Setup Terraform
66+
uses: hashicorp/setup-terraform@v3
67+
id: terraform
5868

5969
- name: Use go to auto-generate code
6070
run: go generate ./...
@@ -90,20 +100,15 @@ jobs:
90100
- '1.8.*'
91101
- '1.9.*'
92102
steps:
103+
- name: Check out code into the Go module directory
104+
uses: actions/checkout@v4
93105

94106
- name: Setup Go
95107
uses: actions/setup-go@v5
96108
with:
97109
go-version: '1.23'
98110
check-latest: true
99111

100-
- name: Check out code into the Go module directory
101-
uses: actions/checkout@v4
102-
103-
- name: Get dependencies
104-
run: |
105-
go mod download
106-
107112
- name: Setup Terraform ${{ matrix.terraform }}
108113
uses: hashicorp/setup-terraform@v3
109114
with:

.github/workflows/release.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,33 @@ jobs:
1818
goreleaser:
1919
runs-on: ubuntu-latest
2020
steps:
21-
-
22-
name: Checkout
21+
- name: Checkout
2322
uses: actions/checkout@v4
24-
-
25-
name: Unshallow
23+
id: checkout
24+
25+
- name: Unshallow
2626
run: git fetch --prune --unshallow
27-
-
28-
name: Set up Go
27+
28+
- name: Set up Go
2929
uses: actions/setup-go@v5
3030
with:
3131
go-version: '1.23'
3232
check-latest: true
33-
-
34-
name: Import GPG key
33+
id: go
34+
35+
- name: Setup Terraform
36+
uses: hashicorp/setup-terraform@v3
37+
id: terraform
38+
39+
- name: Import GPG key
3540
id: import_gpg
3641
uses: crazy-max/ghaction-import-gpg@v6
3742
with:
3843
# These secrets will need to be configured for the repository:
3944
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
4045
passphrase: ${{ secrets.PASSPHRASE }}
41-
-
42-
name: Run GoReleaser
46+
47+
- name: Run GoReleaser
4348
uses: goreleaser/goreleaser-action@v6
4449
with:
4550
version: '~> v2'

0 commit comments

Comments
 (0)