Skip to content

Commit 6da733b

Browse files
authored
use go.mod version
1 parent 2afb8fd commit 6da733b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,14 @@ jobs:
3434
contents: read
3535
strategy:
3636
fail-fast: false
37-
matrix:
38-
go-version: ["1.22", "1.23", stable]
3937
steps:
4038
- name: Checkout Repository
4139
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4240

4341
- name: Setup Golang Environment
4442
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
4543
with:
46-
go-version: ${{ matrix.go-version }}
44+
go-version-file: go.mod
4745

4846
- name: Run Unit Tests
4947
run: make unit-test
@@ -102,7 +100,7 @@ jobs:
102100
- name: Setup Golang Environment
103101
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
104102
with:
105-
go-version: stable
103+
go-version-file: go.mod
106104
if: ${{ github.ref_type == 'tag' }}
107105

108106
- name: Run GoReleaser

0 commit comments

Comments
 (0)