Skip to content

Commit 826f454

Browse files
committed
chore: add compaction correctness ci gate
1 parent 879a453 commit 826f454

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/rust.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: cargo
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: ["**"]
66
pull_request:
7-
branches: ["main"]
7+
branches: ["**"]
88

99
env:
1010
CARGO_TERM_COLOR: always
@@ -48,6 +48,22 @@ jobs:
4848
- name: Run cargo test
4949
run: cargo test --verbose --workspace
5050

51+
compaction-correctness:
52+
name: compaction correctness
53+
runs-on: ubuntu-latest
54+
needs: build
55+
steps:
56+
- uses: actions/checkout@v4
57+
58+
- name: Rust Cache
59+
uses: Swatinem/rust-cache@v2
60+
with:
61+
key: ${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.toml') }}-compaction-correctness
62+
cache-on-failure: false
63+
64+
- name: Run compaction correctness gate (default seeds)
65+
run: cargo test --package tonbo --lib compaction_correctness_ -- --nocapture
66+
5167
coverage:
5268
name: coverage (llvm-cov)
5369
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)