-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.38 KB
/
db_tests.yml
File metadata and controls
54 lines (46 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Core Database Tests
on:
pull_request:
branches: [ main, dev ]
paths:
- 'sensibledb-macros/**'
- 'sensibledb-db/**'
- 'Cargo.toml'
- 'Cargo.lock'
jobs:
test:
name: Test sensibledb_engine
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
env:
SENSIBLE_API_KEY: "12345678901234567890123456789012"
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo dependencies
uses: actions/cache@v4
continue-on-error: true
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') || 'fallback' }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run tests
run: |
cd sensibledb-db
# Skip flaky stress tests with pre-existing LMDB cleanup race condition
cargo test --release --lib -- --skip test_stress --skip test_concurrent_inserts_multiple_labels
- name: Run lincheck tests (if available)
run: |
cd sensibledb-db
cargo test --lib lincheck --release || true
- name: Run benchmarks (if bench feature enabled)
run: |
cd sensibledb-db
cargo bench --features bench || true