Skip to content

Commit 5b7aa20

Browse files
committed
improve the matrix test workflow
1 parent 641c24f commit 5b7aa20

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,19 @@ jobs:
7777
terraform:
7878
- '1.0.3'
7979
steps:
80+
- name: Set up Go
81+
uses: actions/[email protected]
82+
with:
83+
go-version: '1.22'
84+
id: go
85+
86+
- name: Check out code into the Go module directory
87+
uses: actions/[email protected]
88+
89+
- name: Get dependencies
90+
run: |
91+
go mod download
92+
8093
- name: TF acceptance tests
8194
timeout-minutes: 90
8295
run: |
@@ -86,8 +99,6 @@ jobs:
8699
fi
87100
88101
echo "Running tests for Terraform ${{ matrix.terraform }}"
89-
go mod download
90-
go build -v .
91102
go test -timeout 0 -v -cover ./sumologic/
92103
env:
93104
TF_ACC: "1"

0 commit comments

Comments
 (0)