.github/workflows: use Go version from go.mod (#1092)

This commit is contained in:
Vadim Alekseev
2026-02-11 16:39:45 +04:00
committed by Aliaksandr Valialkin
parent 19403b9cd1
commit b1f333093b
4 changed files with 7 additions and 18 deletions

View File

@@ -71,7 +71,7 @@ jobs:
go.sum
Makefile
app/**/Makefile
go-version: stable
go-version-file: 'go.mod'
- run: go version
- name: Build victoria-metrics for ${{ matrix.os }}-${{ matrix.arch }}

View File

@@ -21,8 +21,9 @@ jobs:
id: go
uses: actions/setup-go@v6
with:
go-version: stable
go-version-file: 'go.mod'
cache: false
- run: go version
- name: Cache Go artifacts

View File

@@ -36,7 +36,7 @@ jobs:
uses: actions/setup-go@v6
with:
cache: false
go-version: stable
go-version-file: 'go.mod'
- run: go version
- name: Cache Go artifacts

View File

@@ -42,13 +42,7 @@ jobs:
go.sum
Makefile
app/**/Makefile
# It was pinned to 1.25 (prev value "stable") because Go 1.26 removed SYNCTEST experiment,
# and it is used in VictoriaMetrics codebase.
# So CI fails:
# GOEXPERIMENT=synctest go vet ./lib/...
# go: unknown GOEXPERIMENT synctest
# https://github.com/VictoriaMetrics/VictoriaMetrics/actions/runs/21903996751/job/63239331425?pr=10435
go-version: "1.25.7"
go-version-file: 'go.mod'
- run: go version
- name: Cache golangci-lint
@@ -87,13 +81,7 @@ jobs:
go.sum
Makefile
app/**/Makefile
# It was pinned to 1.25 (prev value "stable") because Go 1.26 removed SYNCTEST experiment,
# and it is used in VictoriaMetrics codebase.
# So CI fails:
# GOEXPERIMENT=synctest go vet ./lib/...
# go: unknown GOEXPERIMENT synctest
# https://github.com/VictoriaMetrics/VictoriaMetrics/actions/runs/21903996751/job/63239331425?pr=10435
go-version: "1.25.7"
go-version-file: 'go.mod'
- run: go version
- name: Run tests
@@ -120,7 +108,7 @@ jobs:
go.sum
Makefile
app/**/Makefile
go-version: stable
go-version-file: 'go.mod'
- run: go version
- name: Run integration tests