Skip to content

Commit

Permalink
ci: Add Go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Feb 1, 2023
1 parent beca7e6 commit 32c0f39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Expand Up @@ -46,8 +46,8 @@ jobs:
- name: Vet
run: go vet ./...
- name: Check go.mod Tidiness
run: go mod tidy -go=1.19 -compat=1.17 && git diff --exit-code
if: ${{ matrix.go == '1.19' }}
run: go mod tidy -go=1.20 -compat=1.17 && git diff --exit-code
if: ${{ matrix.go == '1.20' }}
- name: Test
run: make test
- name: Test (with race detection)
Expand All @@ -56,7 +56,7 @@ jobs:
# pull requests, only run this step for a single job in the matrix. For
# all other workflow triggers (e.g., pushes to a release branch) run
# this step for the whole matrix.
if: ${{ github.event_name != 'pull_request' || (matrix.go == '1.19' && matrix.os == 'ubuntu') }}
if: ${{ github.event_name != 'pull_request' || (matrix.go == '1.20' && matrix.os == 'ubuntu') }}
- name: Collect coverage
run: make test-coverage
- name: Upload coverage to Codecov
Expand All @@ -66,7 +66,7 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
go: ["1.19", "1.18", "1.17"]
go: ["1.20", "1.19", "1.18", "1.17"]
os: [ubuntu, windows, macos]
fail-fast: false
# Test the GOPATH mode with the oldest Go version we support
Expand Down

0 comments on commit 32c0f39

Please sign in to comment.