@@ -27,14 +27,10 @@ jobs:
2727 go-version : ${{ env.GO_VERSION }}
2828 cache : true
2929
30- - name : install deps
31- run : |
32- go install golang.org/x/tools/cmd/goimports@${{ env.GOIMPORTS_VERSION }}
33- go install github.com/klauspost/asmfmt/cmd/asmfmt@${{ env.ASMFMT_VERSION }}
3430 - name : gofmt
3531 run : if [[ -n $(gofmt -l .) ]]; then echo "please run gofmt"; exit 1; fi
3632 - name : goimports
37- run : if [[ -n $(goimports -l .) ]]; then echo "please run goimports"; exit 1; fi
33+ run : if [[ -n $(go tool goimports -l .) ]]; then echo "please run goimports"; exit 1; fi
3834 - name : generated files should not be modified
3935 run : |
4036 go generate ./...
6763
6864 - name : install deps
6965 run : |
70- go install golang.org/x/tools/cmd/goimports@${{ env.GOIMPORTS_VERSION }}
71- go install github.com/klauspost/asmfmt/cmd/asmfmt@${{ env.ASMFMT_VERSION }}
7266 go install github.com/consensys/gnark-solidity-checker@v0.1.0
7367 go install github.com/ethereum/go-ethereum/cmd/abigen@v1.14.8
7468 sudo add-apt-repository ppa:ethereum/ethereum
8680 - name : Run tests
8781 run : |
8882 set -euo pipefail
89- go test -json -v -p 4 -short -timeout=30m ./... 2>&1 | gotestfmt -hide=all | tee /tmp/gotest.log
90- go test -json -v -p 4 -timeout=30m -tags=release_checks,solccheck . 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
91- go test -json -v -p 4 -timeout=30m -tags=prover_checks ./test/... 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
92- go test -json -v -p 4 -timeout=30m -tags=prover_checks ./examples/... 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
93- go test -json -v -run=NONE -fuzz=FuzzIntcomp -fuzztime=30s ./internal/backend/ioutils 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
83+ go test -short -json -v -p 4 -short -timeout=30m ./... 2>&1 | gotestfmt -hide=all | tee /tmp/gotest.log
84+ go test -short -json -v -p 4 -timeout=30m -tags=release_checks,solccheck . 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
85+ go test -short -json -v -p 4 -timeout=30m -tags=prover_checks ./test/... 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
86+ go test -short -json -v -p 4 -timeout=30m -tags=prover_checks ./examples/... 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
87+ go test -short -json -v -run=NONE -fuzz=FuzzIntcomp -fuzztime=10s ./internal/backend/ioutils 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
88+
89+ notify :
90+ needs : test
91+ if : always()
92+ uses : ./.github/workflows/slack-notifications.yml
93+ with :
94+ status : ${{ needs.test.result == 'success' && 'success' || 'failure' }}
95+ actor : ${{ github.actor }}
96+ repository : ${{ github.repository }}
97+ branch : ${{ github.head_ref }}
98+ run_id : ${{ github.run_id }}
99+ secrets :
100+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
0 commit comments