Use version in go.mod for CI build (#2170)

* Use version in `go.mod` for CI

* reorder
This commit is contained in:
Joe Lim authored and GitHub committed 2025-09-19 23:08:47 +10:00
1 parent 38bcd0ba3d
commit edf72c6304
2 files changed
+9 -15

No files matched your search

+7 -13
View File
@@ -8,19 +8,17 @@ on:
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Set up Go
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.24"
go-version-file: go.mod
- name: Build
run: go build -v ./...
@@ -37,13 +35,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Set up Go
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.24"
go-version-file: go.mod
- name: Cross-compile on all supported platforms
run: gen/xbuild.sh
@@ -52,13 +48,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Set up Go
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.24"
go-version-file: go.mod
- name: Test `go fmt` creates no diffs
run: go fmt && git diff --exit-code