Skip to content

Commit 5d69db0

Browse files
committed
feat: update to go1.24
1 parent b2cd051 commit 5d69db0

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Install Go
2828
uses: actions/setup-go@v5
2929
with:
30-
go-version: 1.23
30+
go-version: 1.24
3131
cache: false
3232

3333
- name: Sort Imports
@@ -39,7 +39,7 @@ jobs:
3939
- name: GolangCI-Lint
4040
uses: golangci/golangci-lint-action@v6
4141
with:
42-
version: 'v1.61.0'
42+
version: v2.2.1
4343
args: '--timeout 9999s'
4444
only-new-issues: true
4545
skip-save-cache: true

.github/workflows/test_and_lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
strategy:
2323
matrix:
24-
go-version: [ '1.20', '1.21', '1.22', '1.23' ]
24+
go-version: [ '1.23', '1.24' ]
2525

2626
steps:
2727
- name: Code
@@ -40,7 +40,7 @@ jobs:
4040

4141
strategy:
4242
matrix:
43-
go-version: [ '1.20', '1.21', '1.22', '1.23' ]
43+
go-version: [ '1.23', '1.24' ]
4444

4545
steps:
4646
- name: Code
@@ -60,7 +60,7 @@ jobs:
6060
- name: GolangCI-Lint
6161
uses: golangci/golangci-lint-action@v6
6262
with:
63-
version: 'v1.61.0'
63+
version: v2.2.1
6464
args: '--timeout 9999s'
6565
only-new-issues: ${{ github.event.name == 'pull_request' }}
6666
skip-save-cache: true

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ run:
5959
timeout: 5m
6060
issues-exit-code: 1
6161
tests: false
62-
go: '1.23'
62+
go: '1.24'
6363

6464
# output configuration options
6565
output:

go.mod

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

3-
go 1.20
3+
go 1.23.0
4+
5+
toolchain go1.24.1
46

57
require (
68
github.com/RomiChan/protobuf v0.1.1-0.20230204044148-2ed269a2e54d

0 commit comments

Comments
 (0)