File tree Expand file tree Collapse file tree 4 files changed +20
-46
lines changed
Expand file tree Collapse file tree 4 files changed +20
-46
lines changed Original file line number Diff line number Diff line change 77
88jobs :
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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11module github.com/nicksnyder/go-i18n/v2
22
3- go 1.18
3+ go 1.23
4+
5+ toolchain go1.24.2
46
57require (
68 github.com/BurntSushi/toml v1.5.0
You can’t perform that action at this time.
0 commit comments