File tree Expand file tree Collapse file tree 1 file changed +45
-1
lines changed Expand file tree Collapse file tree 1 file changed +45
-1
lines changed Original file line number Diff line number Diff line change 2020 OCAMLRUNPARAM : b
2121
2222jobs :
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
You can’t perform that action at this time.
0 commit comments