Skip to content

Commit

Permalink
ci: update Go to 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
tklauser committed Aug 16, 2021
1 parent 666abe6 commit f969afb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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
Expand Down

0 comments on commit f969afb

Please sign in to comment.