Skip to content

Commit 59e9aef

Browse files
authored
Require go 1.23 (nicksnyder#371)
1 parent f877392 commit 59e9aef

File tree

4 files changed

+20
-46
lines changed

4 files changed

+20
-46
lines changed

‎.github/workflows/build.yml‎

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@ on:
77

88
jobs:
99
build:
10-
name: Build
10+
name: Build (go:${{ matrix.go-version.name }})
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
go-version:
15+
- name: latest
16+
version: 1.24.x
17+
- name: previous
18+
version: 1.23.x
1219
steps:
1320
- name: Install Go
1421
uses: actions/setup-go@v5
1522
with:
16-
go-version: '1.24'
23+
go-version: ${{ matrix.go-version.version }}
1724
- name: Git checkout
1825
uses: actions/checkout@v4
1926
- name: Build
@@ -25,21 +32,12 @@ jobs:
2532
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
2633
- name: Upload coverage
2734
uses: codecov/codecov-action@v4
35+
if: matrix.go-version.name == 'latest'
2836
with:
2937
token: ${{ secrets.CODECOV_TOKEN }}
3038
fail_ci_if_error: true
31-
build_1_18:
32-
name: Build with Go 1.18
33-
runs-on: ubuntu-latest
34-
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
35-
steps:
36-
- name: Install Go
37-
uses: actions/setup-go@v5
39+
- name: Lint
40+
uses: golangci/golangci-lint-action@v7
41+
if: matrix.go-version.name == 'latest'
3842
with:
39-
go-version: '1.18'
40-
- name: Git checkout
41-
uses: actions/checkout@v4
42-
- name: Build and test
43-
run: |
44-
go get ./...
45-
go test -race ./...
43+
version: v2.0

‎.github/workflows/golangci-lint.yml‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎.github/workflows/goreleaser.yml‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,15 @@ jobs:
99
goreleaser:
1010
runs-on: ubuntu-latest
1111
steps:
12-
-
13-
name: Checkout
12+
- name: Checkout
1413
uses: actions/checkout@v4
1514
with:
1615
fetch-depth: 0
17-
-
18-
name: Set up Go
16+
- name: Set up Go
1917
uses: actions/setup-go@v5
2018
with:
2119
go-version: '1.24'
22-
-
23-
name: Release
20+
- name: Release
2421
uses: goreleaser/goreleaser-action@v6
2522
with:
2623
version: latest

‎go.mod‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/nicksnyder/go-i18n/v2
22

3-
go 1.18
3+
go 1.23
4+
5+
toolchain go1.24.2
46

57
require (
68
github.com/BurntSushi/toml v1.5.0

0 commit comments

Comments
 (0)