Skip to content

Commit

Permalink
ci: add go version 1.23 support (#3733)
Browse files Browse the repository at this point in the history
houseme authored Sep 19, 2024
1 parent d8b06d0 commit fd33dcb
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
@@ -185,7 +185,7 @@ jobs:

strategy:
matrix:
go-version: [ "1.18", "1.19", "1.20", "1.21", "1.22" ]
go-version: [ "1.18", "1.19", "1.20", "1.21", "1.22", "1.23" ]
goarch: [ "386", "amd64" ]

steps:
2 changes: 1 addition & 1 deletion .github/workflows/ci-sub.yml
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ jobs:

strategy:
matrix:
go-version: [ "1.18", "1.19", "1.20", "1.22" ]
go-version: [ "1.18", "1.19", "1.20", "1.22", "1.23" ]
goarch: [ "386", "amd64" ]

steps:
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ jobs:
golangci:
strategy:
matrix:
go-version: [ '1.18','1.19','1.20','1.21.4','1.22' ]
go-version: [ '1.18','1.19','1.20','1.21.4','1.22','1.23' ]
name: golangci-lint
runs-on: ubuntu-latest
steps:
@@ -50,5 +50,5 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.58.2
version: v1.60.1
args: --timeout 3m0s
8 changes: 1 addition & 7 deletions database/gredis/gredis_redis.go
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@ import (
"github.com/gogf/gf/v2/container/gvar"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/text/gstr"
)

// Redis client.
@@ -48,12 +47,7 @@ const (
errorNilRedis = `the Redis object is nil`
)

var (
errorNilAdapter = gstr.Trim(gstr.Replace(`
redis adapter is not set, missing configuration or adapter register?
possible reference: https://github.com/gogf/gf/tree/master/contrib/nosql/redis
`, "\n", ""))
)
const errorNilAdapter = `redis adapter is not set, missing configuration or adapter register? possible reference: https://github.com/gogf/gf/tree/master/contrib/nosql/redis`

// initGroup initializes the group object of redis.
func (r *Redis) initGroup() *Redis {

0 comments on commit fd33dcb

Please sign in to comment.