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 ce722ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
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/getsentry/sentry-go

go 1.19
go 1.20

require (
github.com/gin-gonic/gin v1.8.1
Expand Down

0 comments on commit ce722ed

Please sign in to comment.