Skip to content

Commit 9f65d3d

Browse files
authored
Fix Windows CI (#7665)
1 parent 8ed879e commit 9f65d3d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,14 @@ jobs:
360360
if: runner.os != 'Windows'
361361
run: make -C tests/gentype_tests/typescript-react-example clean test
362362

363+
# On Windows, after running setup-ocaml (if it wasn't cached yet or the cache couldn't be restored),
364+
# Cygwin bash is used instead of Git Bash for Windows, breaking the rewatch tests.
365+
# So we need to adjust the path to bring back Git Bash for Windows.
366+
- name: Rewatch tests need Git Bash for Windows
367+
if: ${{ runner.os == 'Windows' }}
368+
run: echo "C:\Program Files\Git\bin" >> $GITHUB_PATH
369+
shell: bash
370+
363371
- name: Run rewatch tests
364372
run: ./rewatch/tests/suite-ci.sh
365373
shell: bash

0 commit comments

Comments
 (0)