Skip to content

Commit

Permalink
ci: new attempt to fix push to master workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Oct 12, 2023
1 parent 3c33adc commit 750aac1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,12 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}


- name: install deps
run: |
go install golang.org/x/tools/cmd/goimports@latest && go install github.com/klauspost/asmfmt/cmd/asmfmt@latest
go install github.com/ethereum/go-ethereum/cmd/[email protected]
- name: install solc deps
if: (${{ matrix.os }} != 'windows-latest') && (${{ matrix.os }} != 'macos-latest')
if: startsWith(matrix.os, 'ubuntu') == true
run: |
go install github.com/consensys/gnark-solidity-checker@latest
sudo add-apt-repository ppa:ethereum/ethereum
Expand All @@ -77,22 +75,22 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Test (windows / mac)
# on macOS CI / Windows CI we avoid running the std/ tests (they are run on ubuntu CI)
if: (${{ matrix.os }} == 'windows-latest') || (${{ matrix.os }} == 'macos-latest')
if: startsWith(matrix.os, 'ubuntu') == false
run: |
go test -tags=release_checks -v -timeout=60m .
go test -tags=release_checks -v -timeout=60m ./frontend/...
go test -tags=release_checks -v -timeout=60m ./backend/...
go test -short -v -timeout=60m ./...
- name: Test (ubuntu - race and solc)
if: (${{ matrix.os }} != 'windows-latest') && (${{ matrix.os }} != 'macos-latest')
if: startsWith(matrix.os, 'ubuntu') == true
run: |
go test -json -v -timeout=60m -tags=release_checks ./... 2>&1 | gotestfmt -hide=all | tee /tmp/gotest.log
go test -json -v -tags=release_checks,solccheck . 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
go test -json -v -timeout=60m -race -short ./... 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
- name: Generate job summary
id: generate-job-summary
if: (${{ matrix.os }} != 'windows-latest') && (${{ matrix.os }} != 'macos-latest') && ${{ always() }}
if: startsWith(matrix.os, 'ubuntu') == true && always()
run: |
if [ -s /tmp/gotest.log ]; then
cat /tmp/gotest.log > $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit 750aac1

Please sign in to comment.