From c1663ec63630b66b414b26696580c205b522c30d Mon Sep 17 00:00:00 2001 From: David Finkel Date: Wed, 1 Feb 2023 17:30:36 -0500 Subject: [PATCH] actions: add go 1.20 Leave go 1.17 for now, since 1.20 just came out. --- .github/workflows/go.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 38cff386..af91c8ab 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: os: [macOS-latest, ubuntu-latest] - goversion: [1.17, 1.18, '1.19'] + goversion: [1.17, 1.18, '1.19', '1.20'] steps: - name: Set up Go ${{matrix.goversion}} on ${{matrix.os}} uses: actions/setup-go@v3 @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v1 - name: gofmt - if: ${{matrix.goversion == '1.19'}} + if: ${{matrix.goversion == '1.20'}} run: | [[ -z $(gofmt -l $(find . -name '*.go') ) ]] @@ -43,9 +43,9 @@ jobs: GO111MODULE: on run: go test -race -mod=readonly -count 2 ./... - # Run all consistenthash Fuzz tests for 30s with go 1.19 + # Run all consistenthash Fuzz tests for 30s with go 1.20 - name: Fuzz Consistent-Hash - if: ${{matrix.goversion == '1.19'}} + if: ${{matrix.goversion == '1.20'}} env: GO111MODULE: on run: go test -fuzz=. -fuzztime=30s ./consistenthash