diff --git a/.cirrus.yml b/.cirrus.yml index 99c7e03..d880c69 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,6 +1,6 @@ env: CIRRUS_CLONE_DEPTH: 1 - GO_VERSION: go1.21.5 + GO_VERSION: go1.22.0 freebsd_13_task: freebsd_instance: diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index ceb557b..0079aed 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -16,7 +16,7 @@ jobs: - name: Install Go uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 with: - go-version: '1.21' + go-version: '1.22' - name: Check out code uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 70ad7f8..5392e8b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,8 @@ jobs: build-and-test: strategy: matrix: - go-version: ['1.19', '1.20', '1.21'] + # Oldest supported version is 1.19, plus the latest two releases. + go-version: ['1.19', '1.21', '1.22'] os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12, macos-13, macos-14, windows-2019, windows-2022] runs-on: ${{ matrix.os }} @@ -26,11 +27,11 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Check formatting - if: ${{ matrix.go-version == '1.21' && matrix.os == 'ubuntu-22.04' }} + if: ${{ matrix.go-version == '1.22' && matrix.os == 'ubuntu-22.04' }} run: diff -u <(echo -n) <(gofmt -d .) - name: Check Go modules - if: ${{ matrix.go-version == '1.21' && matrix.os == 'ubuntu-22.04' }} + if: ${{ matrix.go-version == '1.22' && matrix.os == 'ubuntu-22.04' }} run: | go mod tidy git diff --exit-code