From a6c3ee02dd32b83dd43c97389e110bf0101be72e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 27 Nov 2019 14:01:39 +0000 Subject: [PATCH] workflows/tests: tweak behaviour by OS. This should speed up Homebrew/brew testing by not running generic or no-compat tests on macOS. --- .github/workflows/tests.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0eba4f3ff5..5561c53215 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -56,10 +56,15 @@ jobs: export HOMEBREW_CI_BRANCH="$HEAD_GITHUB_REF" export HOMEBREW_GITHUB_REPOSITORY="$GITHUB_REPOSITORY" - export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin" - brew tests --no-compat --online - brew tests --generic --online - brew tests --online --coverage + # don't bother running all tests on both platforms (for speed) + if [ "$RUNNER_OS" = "Linux" ]; then + export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/bin:/bin" + brew tests --no-compat --online + brew tests --generic --online + brew tests --online + else + brew tests --online --coverage + fi env: HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}