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 c6bc3c3 commit adcea3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ 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 -short -v -timeout=60m ./...
- name: Test (ubuntu - race and solc)
if: matrix.os == 'ubuntu-22.04-16core'
if: ${{ runner.os }} == 'Linux'
run: |
set -euo pipefail
go test -json -v -timeout=30m ./... 2>&1 | gotestfmt -hide=all | tee /tmp/gotest.log
Expand All @@ -83,7 +83,7 @@ jobs:
- 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 Down

0 comments on commit adcea3b

Please sign in to comment.