From adcea3b5e5388e9f5e33273a5a1721acbd353f2f Mon Sep 17 00:00:00 2001 From: Gautam Botrel Date: Thu, 12 Oct 2023 14:27:11 -0500 Subject: [PATCH] ci: use runner.os --- .github/workflows/push.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index bdffcb910..65a66b958 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 @@ -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