fix: silence bash deprecation warning on macOS runners (#10051)

See https://github.com/coder/coder/actions/runs/6407839577/job/17395535790?pr=10050
This commit is contained in:
Kyle Carberry 2023-10-04 10:36:27 -05:00 committed by GitHub
parent 2c2e98cc39
commit defef4671c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -282,6 +282,11 @@ jobs:
# is a fine default.
PARALLEL_FLAG=""
# macOS will output "The default interactive shell is now zsh"
# intermittently in CI...
if [ "${{ matrix.os }}" == "macos-latest" ]; then
touch ~/.bash_profile && echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile
fi
export TS_DEBUG_DISCO=true
gotestsum --junitfile="gotests.xml" --jsonfile="gotests.json" \
--packages="./..." -- $PARALLEL_FLAG -short -failfast $COVERAGE_FLAGS