Skip to content

Commit eeb460b

Browse files
committed
run rewatch tests
1 parent 6d35acf commit eeb460b

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,50 @@ env:
2020
OCAMLRUNPARAM: b
2121

2222
jobs:
23+
test-rewatch:
24+
runs-on: ubuntu-latest
25+
env:
26+
RUST_BACKTRACE: "1"
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
32+
- name: Use Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version-file: .nvmrc
36+
37+
- name: Restore build cache
38+
id: build-cache
39+
uses: actions/cache@v4
40+
with:
41+
path: rewatch/target
42+
key: rewatch-build-v2-ubuntu-24.04-${{ hashFiles('rewatch/src/**', 'rewatch/Cargo.lock') }}
43+
44+
- name: Install musl gcc
45+
if: steps.build-cache.outputs.cache-hit != 'true' && runner.os == 'Linux'
46+
run: sudo apt-get install -y --no-install-recommends musl-tools
47+
48+
- name: Install rust toolchain
49+
if: steps.build-cache.outputs.cache-hit != 'true'
50+
uses: dtolnay/rust-toolchain@master
51+
with:
52+
toolchain: stable
53+
54+
- name: Build rewatch
55+
if: steps.build-cache.outputs.cache-hit != 'true'
56+
run: |
57+
cargo build --manifest-path rewatch/Cargo.toml --release
58+
59+
- name: Run rewatch unit tests
60+
run: |
61+
cargo test --manifest-path rewatch/Cargo.toml
62+
63+
- name: Run rewatch integration tests
64+
run: |
65+
make test-rewatch
66+
2367
build-rewatch:
2468
strategy:
2569
fail-fast: false
@@ -440,7 +484,7 @@ jobs:
440484
path: lib/ocaml
441485

442486
pkg-pr-new:
443-
needs:
487+
needs:
444488
- build-rewatch
445489
- build-compiler
446490
runs-on: ubuntu-24.04-arm

0 commit comments

Comments
 (0)