Skip to content

Commit defef46

Browse files
authored
fix: silence bash deprecation warning on macOS runners (#10051)
See https://github.com/coder/coder/actions/runs/6407839577/job/17395535790?pr=10050
1 parent 2c2e98c commit defef46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,11 @@ jobs:
282282
# is a fine default.
283283
PARALLEL_FLAG=""
284284
285+
# macOS will output "The default interactive shell is now zsh"
286+
# intermittently in CI...
287+
if [ "${{ matrix.os }}" == "macos-latest" ]; then
288+
touch ~/.bash_profile && echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile
289+
fi
285290
export TS_DEBUG_DISCO=true
286291
gotestsum --junitfile="gotests.xml" --jsonfile="gotests.json" \
287292
--packages="./..." -- $PARALLEL_FLAG -short -failfast $COVERAGE_FLAGS

0 commit comments

Comments
 (0)