Skip to content

Commit

Permalink
upgrade go version in build
Browse files Browse the repository at this point in the history
  • Loading branch information
kajes committed Apr 26, 2024
1 parent bffed2f commit 80d27ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ^1.20
go-version: ^1.22
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Get dependencies
run: |
go get -t -x ./...
go install ./...
- name: Test formatting
run: make fmtcheck
Expand All @@ -39,7 +39,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: "1.20.x"
go-version: "1.22.x"
- run: "GO111MODULE=on go install honnef.co/go/tools/cmd/staticcheck@2023.1"
- uses: actions/checkout@v3
with:
Expand All @@ -51,4 +51,4 @@ jobs:
restore-keys: |
staticcheck-
- run: "go vet ./..."
- run: "$(go env GOPATH)/bin/staticcheck -go 1.20 ./..."
- run: "$(go env GOPATH)/bin/staticcheck -go 1.22 ./..."

0 comments on commit 80d27ef

Please sign in to comment.