From 21e516f569afb9e57e017b3c467927a4b08ae96b Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 17 Aug 2021 00:14:59 +0200 Subject: [PATCH] ci: update Go to 1.17 --- .cirrus.yml | 8 ++++---- .github/workflows/test.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index a118d63..2ba95bc 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -6,7 +6,7 @@ freebsd_12_task: image_family: freebsd-12-2 install_script: | pkg install -y git go - GOBIN=$PWD/bin go get golang.org/dl/go1.16.6 - bin/go1.16.6 download - build_script: bin/go1.16.6 build -v ./... - test_script: bin/go1.16.6 test -race ./... + GOBIN=$PWD/bin go get golang.org/dl/go1.17 + bin/go1.17 download + build_script: bin/go1.17 build -v ./... + test_script: bin/go1.17 test -race ./... diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1debbc..1819486 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: build-and-test: strategy: matrix: - go-version: [1.14, 1.15, 1.16] + go-version: [1.15, 1.16, 1.17] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} @@ -26,11 +26,11 @@ jobs: uses: actions/checkout@v2 - name: Check formatting - if: ${{ matrix.go-version == '1.16' && matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.go-version == '1.17' && matrix.os == 'ubuntu-latest' }} run: diff -u <(echo -n) <(gofmt -d .) - name: Check Go modules - if: ${{ matrix.go-version == '1.16' && matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.go-version == '1.17' && matrix.os == 'ubuntu-latest' }} run: | go mod tidy git diff --exit-code