Skip to content

Commit 40ce6f0

Browse files
committed
ci: use go-version-file to set version
1 parent 1c86231 commit 40ce6f0

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: goreleaser
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
permissions:
99
contents: write
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@v5
2222
with:
23-
go-version: "1.24"
23+
go-version-file: "go.mod"
2424
- name: Run GoReleaser
2525
uses: goreleaser/goreleaser-action@v6
2626
with:

.github/workflows/test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ on: push
22
name: Test
33
jobs:
44
test:
5+
name: Go unit tests
56
runs-on: ubuntu-latest
67
steps:
78
- uses: actions/checkout@v4
8-
with:
9-
fetch-depth: 1
109
- uses: actions/setup-go@v5
1110
with:
12-
go-version: "1.24"
13-
- run: go mod download
11+
go-version-file: "go.mod"
1412
- run: go test ./...

0 commit comments

Comments
 (0)