From ce722ed270dfadf51aa97cd2bd0371eb3db25c86 Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Wed, 1 Feb 2023 22:50:51 +0100 Subject: [PATCH] ci: Add Go 1.20 --- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 8 ++++---- go.mod | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9af58ec53..02ef3528f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c037c2c40..c80fb3df9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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) @@ -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 @@ -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 diff --git a/go.mod b/go.mod index e96d2f37b..0843de459 100644 --- a/go.mod +++ b/go.mod @@ -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