mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
.github/workflows: use Go version from go.mod (#1092)
This commit is contained in:
committed by
Aliaksandr Valialkin
parent
19403b9cd1
commit
b1f333093b
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -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 }}
|
||||
|
||||
3
.github/workflows/check-licenses.yml
vendored
3
.github/workflows/check-licenses.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/codeql-analysis-go.yml
vendored
2
.github/workflows/codeql-analysis-go.yml
vendored
@@ -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
|
||||
|
||||
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user