Skip to content

Commit

Permalink
ci: use runner.os
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Oct 12, 2023
1 parent 391676e commit 0fcefd4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
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 == 'ubuntu-latest'
if: ${{ runner.os }} == 'Linux'
run: |
go install github.com/consensys/gnark-solidity-checker@latest
sudo add-apt-repository ppa:ethereum/ethereum
Expand All @@ -77,22 +77,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 != 'ubuntu-22.04-16core'
if: ${{ runner.os }} != 'Linux'
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 == 'ubuntu-22.04-16core'
if: ${{ runner.os }} == 'Linux'
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 == 'ubuntu-22.04-16core' && ${{ always() }}
if: ${{ runner.os }} == 'Linux' && ${{ always() }}
run: |
if [ -s /tmp/gotest.log ]; then
cat /tmp/gotest.log > $GITHUB_STEP_SUMMARY
Expand All @@ -101,12 +101,7 @@ jobs:
echo "## Success ✅" > $GITHUB_STEP_SUMMARY
echo "failures=" > $GITHUB_OUTPUT
fi
# if we failed a test, we want to comment on the PR with the log
- name: PR comment with file
if: matrix.os == 'ubuntu-22.04-16core' && ${{ failure() }}
uses: thollander/actions-comment-pull-request@v2
with:
filePath: /tmp/gotest.log
slack-workflow-status-failed:
Expand Down

0 comments on commit 0fcefd4

Please sign in to comment.