Skip to content

Commit

Permalink
Upgrade to Go 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonboom committed Aug 14, 2023
1 parent c7f9a10 commit 859c94c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: "daily"
interval: "monthly"
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: rlespinasse/github-slug-action@v4
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: ^1.20
go-version: ^1.21
- run: cd /tmp && go install github.com/Antonboom/errname@${{ env.GITHUB_REF_NAME }} && errname -h

lint:
Expand All @@ -22,14 +22,15 @@ jobs:
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
with:
version: latest
version: v1.54.0
args: --timeout=5m

tests:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: ^1.20
go-version: ^1.21
- uses: actions/checkout@v3
- run: go test -coverprofile=coverage.out ./...
- uses: shogo82148/actions-goveralls@v1
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ linters:
- asciicheck
- bidichk
- bodyclose
- depguard
- dogsled
- dupl
- durationcheck
Expand Down Expand Up @@ -53,6 +52,7 @@ linters:
- lll
- makezero
- misspell
- mirror
- nakedret
- nilerr
- nilnil
Expand Down
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ tasks:

tools:install:
- echo "Install local tools..."
- (which gci > /dev/null) || GO111MODULE=off go install github.com/daixiang0/gci@latest
- (which gofumpt > /dev/null) || GO111MODULE=off go install mvdan.cc/gofumpt@latest
- (which gci > /dev/null) || go install github.com/daixiang0/gci@latest
- (which gofumpt > /dev/null) || go install mvdan.cc/gofumpt@latest

tidy:
cmds:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Antonboom/errname

go 1.20
go 1.21

require (
golang.org/x/sys v0.11.0 // indirect
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss=
Expand Down

0 comments on commit 859c94c

Please sign in to comment.