Skip to content

Commit 38414ac

Browse files
authored
Rewatch windows support (#7477)
1 parent f97dd8d commit 38414ac

36 files changed

+790
-583
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ jobs:
9898
- name: Install npm packages
9999
run: yarn install
100100

101+
- name: Install testrepo deps
102+
run: cd rewatch/testrepo && yarn install
103+
101104
- name: Install dependencies (Linux)
102105
if: runner.os == 'Linux'
103106
uses: awalsh128/[email protected]
@@ -133,6 +136,8 @@ jobs:
133136
- name: Copy rewatch binary
134137
run: |
135138
cp rewatch/target/${{ matrix.rust-target }}/release/rewatch${{ runner.os == 'Windows' && '.exe' || '' }} rewatch
139+
mkdir -p rewatch/target/release
140+
cp rewatch/target/${{ matrix.rust-target }}/release/rewatch${{ runner.os == 'Windows' && '.exe' || '' }} rewatch/target/release
136141
./scripts/copyExes.js --rewatch
137142
shell: bash
138143

@@ -354,6 +359,9 @@ jobs:
354359
if: runner.os != 'Windows'
355360
run: make -C tests/gentype_tests/typescript-react-example clean test
356361

362+
- name: Run rewatch tests
363+
run: make test-rewatch
364+
357365
- name: Run syntax benchmarks
358366
if: matrix.benchmarks
359367
run: ./_build/install/default/bin/syntax_benchmarks | tee tests/benchmark-output.json
@@ -507,7 +515,6 @@ jobs:
507515
working-directory: ${{ steps.tmp-dir.outputs.path }}
508516

509517
- name: Install ReScript package in rewatch/testrepo
510-
if: runner.os == 'Linux'
511518
run: |
512519
COMMIT_SHA="${{ github.event.pull_request.head.sha || github.sha }}"
513520
yarn add "rescript@https://pkg.pr.new/rescript-lang/rescript@${COMMIT_SHA::7}"
@@ -516,8 +523,7 @@ jobs:
516523

517524
- name: Run rewatch integration tests
518525
# Currently failing on Windows and intermittently on macOS
519-
if: runner.os == 'Linux'
520-
run: make test-rewatch-ci
526+
run: make test-rewatch-integration
521527

522528
publish:
523529
needs:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ test-gentype:
4949
test-rewatch:
5050
bash ./rewatch/tests/suite-ci.sh
5151

52-
test-rewatch-ci:
52+
test-rewatch-integration:
5353
bash ./rewatch/tests/suite-ci.sh node_modules/.bin/rewatch
5454

5555
test-all: test test-gentype test-analysis test-tools test-rewatch

0 commit comments

Comments
 (0)