Check for --coverage flag.

This commit is contained in:
Markus Reiter 2020-11-28 15:48:30 +01:00
parent d404992676
commit 2c34167131

View File

@ -197,13 +197,15 @@ jobs:
fi
if ${{ runner.os == 'macOS' }}; then
# Set variables for coverage reporting.
export HOMEBREW_CODECOV_TOKEN='3ea0364c-80ce-47a3-9fba-93a940d4b5d7'
# These cannot be queried at the macOS level on GitHub Actions.
export HOMEBREW_LANGUAGES='en-GB'
fi
if ${{ contains(matrix.test-flags, '--coverage') }}; then
# Set variables for coverage reporting.
export HOMEBREW_CODECOV_TOKEN='3ea0364c-80ce-47a3-9fba-93a940d4b5d7'
fi
brew tests ${{ matrix.test-flags }}
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}