Skip to content

Commit de325c9

Browse files
committed
feat(ci): use go.mod to determine Go version in CI
1 parent 4feebcf commit de325c9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@ jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
go-version: ["^1", "stable", "oldstable"]
13+
go-version: ["^1", "stable", "oldstable", "gomod"]
1414
os: [ubuntu-latest, macos-latest] #windows-latest
1515
runs-on: ${{ matrix.os }}
1616
steps:
1717
- uses: actions/checkout@v6
1818
- uses: actions/setup-go@v6
19+
if: matrix.go-version != 'gomod'
1920
with:
2021
go-version: ${{ matrix.go-version }}
22+
- uses: actions/setup-go@v6
23+
if: matrix.go-version == 'gomod'
24+
with:
25+
go-version-file: go.mod
2126
- run: |
2227
diff --version
2328
patch --version

0 commit comments

Comments
 (0)