From d9e2dd757e6c3e5bc9b712939f3738773670ffe7 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 2 Feb 2023 16:32:02 +0100 Subject: [PATCH] ci: update Go to 1.20, drop 1.17 Run the formatting and module checks with 1.20. Leave the staticcheck workflow on Go 1.19 for now until a version supporting Go 1.20 is released. --- .cirrus.yml | 2 +- .github/workflows/test.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 53c0110..69c6ced 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,6 +1,6 @@ env: CIRRUS_CLONE_DEPTH: 1 - GO_VERSION: go1.19.1 + GO_VERSION: go1.20 freebsd_12_task: freebsd_instance: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9b432f4..8fa6d54 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: build-and-test: strategy: matrix: - go-version: [1.17, 1.18, 1.19] + go-version: ['1.18', '1.19', '1.20'] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} @@ -26,11 +26,11 @@ jobs: uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c - name: Check formatting - if: ${{ matrix.go-version == '1.19' && matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.go-version == '1.20' && matrix.os == 'ubuntu-latest' }} run: diff -u <(echo -n) <(gofmt -d .) - name: Check Go modules - if: ${{ matrix.go-version == '1.19' && matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.go-version == '1.20' && matrix.os == 'ubuntu-latest' }} run: | go mod tidy git diff --exit-code