Skip to content

Commit db22748

Browse files
committed
Refactor test workflow
1 parent 860513d commit db22748

File tree

1 file changed

+12
-22
lines changed

1 file changed

+12
-22
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 5
1515
steps:
16-
17-
- name: Set up Go
18-
uses: actions/setup-go@v3
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-go@v3
1918
with:
20-
go-version: 1.19
21-
id: go
22-
23-
- name: Check out code into the Go module directory
24-
uses: actions/checkout@v3
19+
go-version-file: 'go.mod'
20+
cache: true
2521

2622
- name: Get dependencies
27-
run: |
28-
go mod download
23+
run: go mod download
2924

3025
- name: Lint
3126
uses: golangci/golangci-lint-action@v3
@@ -49,22 +44,17 @@ jobs:
4944
matrix:
5045
terraform:
5146
- '0.15.5'
52-
- '1.0.0'
53-
- '1.1.9'
47+
- '1.2.9'
48+
- '1.3.7'
5449
steps:
55-
56-
- name: Set up Go
57-
uses: actions/setup-go@v3
50+
- uses: actions/checkout@v3
51+
- uses: actions/setup-go@v3
5852
with:
59-
go-version: ^1.19
60-
id: go
61-
62-
- name: Check out code into the Go module directory
63-
uses: actions/checkout@v3
53+
go-version-file: 'go.mod'
54+
cache: true
6455

6556
- name: Get dependencies
66-
run: |
67-
go mod download
57+
run: go mod download
6858

6959
- name: TF acceptance tests
7060
timeout-minutes: 10

0 commit comments

Comments
 (0)