Skip to content

Commit

Permalink
Test with Go 1.20 (#295)
Browse files Browse the repository at this point in the history
Each major Go release is supported until there are two newer major
releases. Removing testing with Go 1.18 because `staticcheck` has 
conflicting versions that don't work either on 1.18 (v0.4.0) or 1.20 (v0.3.3).
  • Loading branch information
nfx authored Feb 3, 2023
1 parent 08b3540 commit 4133f71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
goVersion: [1.18.x, 1.19.x]
goVersion: [1.19.x, 1.20.x]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -31,8 +31,6 @@ jobs:
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
go install gotest.tools/gotestsum@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Pull external libraries
run: make vendor
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fmt:

lint: vendor
@echo "✓ Linting source code with https://staticcheck.io/ ..."
@go run honnef.co/go/tools/cmd/staticcheck@latest ./...
@go run honnef.co/go/tools/cmd/staticcheck@v0.4.0 ./...

test: lint
@echo "✓ Running tests ..."
Expand Down

0 comments on commit 4133f71

Please sign in to comment.