Skip to content

Commit

Permalink
actions: add go 1.20
Browse files Browse the repository at this point in the history
Leave go 1.17 for now, since 1.20 just came out.
  • Loading branch information
dfinkel committed Feb 1, 2023
1 parent 7ad68af commit c1663ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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') ) ]]
Expand All @@ -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
Expand Down

0 comments on commit c1663ec

Please sign in to comment.