From eb03689c11b0aa1aa3c18dfde0b95f3d4beec48e Mon Sep 17 00:00:00 2001 From: Andrew Haines Date: Fri, 1 Nov 2024 15:24:48 +0000 Subject: [PATCH] Test against correct Go versions https://github.com/actions/setup-go/issues/491 Signed-off-by: Andrew Haines --- .github/workflows/pr-test.yaml | 6 ++++-- CONTRIBUTING.md | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-test.yaml b/.github/workflows/pr-test.yaml index 5cc36cf..d814dad 100644 --- a/.github/workflows/pr-test.yaml +++ b/.github/workflows/pr-test.yaml @@ -4,12 +4,14 @@ on: pull_request: branches: - main +env: + GOTOOLCHAIN: local jobs: test: runs-on: ubuntu-latest strategy: matrix: - go: ["1.21", "1.22"] + go: ["1.22", "1.23"] name: Test on Go ${{ matrix.go }} timeout-minutes: 10 steps: @@ -19,7 +21,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go}} + go-version: ${{ matrix.go }} check-latest: true - name: Install just diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 06aae7d..bd4dfc7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,4 +41,4 @@ Submitting pull requests Developing Cerbos Go SDK ------------------------ -We currently require Go 1.20.x for development. [Just](https://just.systems/man/en/chapter_1.html) is used for build tasks. Run `just` at the root of the directory to see the list of available targets. +We currently require Go 1.22.x for development. [Just](https://just.systems/man/en/chapter_1.html) is used for build tasks. Run `just` at the root of the directory to see the list of available targets.