Skip to content

Commit f9c7df1

Browse files
committed
ci: use go version of go.mod
1 parent 1eacc4e commit f9c7df1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/ci-server.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
on:
22
workflow_call:
3-
env:
4-
GO_VERSION: "1.24"
53

64
jobs:
75
ci-server-lint:
@@ -13,7 +11,7 @@ jobs:
1311
- name: go setup
1412
uses: actions/setup-go@v5
1513
with:
16-
go-version: ${{ env.GO_VERSION }}
14+
go-version-file: server/go.mod
1715
cache-dependency-path: server/go.mod
1816
- name: golangci-lint
1917
uses: golangci/golangci-lint-action@v6
@@ -34,7 +32,7 @@ jobs:
3432
- name: go setup
3533
uses: actions/setup-go@v5
3634
with:
37-
go-version: ${{ env.GO_VERSION }}
35+
go-version-file: server/go.mod
3836
cache-dependency-path: server/go.mod
3937
- name: test
4038
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic -timeout 10m

0 commit comments

Comments
 (0)