Skip to content

Commit

Permalink
Merge pull request #364 from jtraglia/update-tested-go-versions
Browse files Browse the repository at this point in the history
Run tests with Go 1.19 and 1.20
  • Loading branch information
gbotrel committed Mar 23, 2023
2 parents c27657a + d133124 commit d3f639d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on: pull_request
env:
env:
GOPROXY: "https://proxy.golang.org"

name: pull_request
Expand All @@ -10,7 +10,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.19.x
go-version: 1.20.x
- name: checkout code
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -39,11 +39,11 @@ jobs:
git update-index --assume-unchanged go.mod
git update-index --assume-unchanged go.sum
if [[ -n $(git status --porcelain) ]]; then echo "git repo is dirty after runing go generate -- please don't modify generated files"; echo $(git diff);echo $(git status --porcelain); exit 1; fi
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x]
go-version: [1.19.x, 1.20.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
needs:
Expand Down Expand Up @@ -72,12 +72,12 @@ jobs:
go test -p=1 -v -timeout=30m ./...
go test -p=1 -tags=purego -v -timeout=30m ./...
- name: Test (32 bits & race)
if: (matrix.os == 'ubuntu-latest') && (matrix.go-version == '1.18.x')
if: (matrix.os == 'ubuntu-latest') && (matrix.go-version == '1.19.x')
run: |
go test -p=1 -v -timeout=30m -short -race ./ecc/bn254/...
go test -p=1 -v -timeout=30m -short -tags=noadx ./ecc/bn254/...
GOARCH=386 go test -p=1 -timeout=30m -short -v ./ecc/bn254/...
slack-workflow-status-failed:
if: failure()
name: post workflow status to slack
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

### Go version

`gnark-crypto` is tested with the last 2 major releases of Go (1.17 and 1.18).
`gnark-crypto` is tested with the last 2 major releases of Go (currently 1.19 and 1.20).

### Install `gnark-crypto`

Expand Down

0 comments on commit d3f639d

Please sign in to comment.