Skip to content

Commit db0e5c5

Browse files
committed
fix: WASM test build — gate SqliteStorage tests behind feature = sqlite, fix Windows shell in security audit
1 parent 3ae7631 commit db0e5c5

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@ jobs:
8484
wasm-pack test --firefox --headless -- --no-default-features --features wasm || echo "Firefox not available, skipping"
8585
8686
- name: Security audit
87+
shell: bash
8788
run: |
8889
cargo install cargo-audit --locked 2>/dev/null || true
8990
cargo audit 2>&1 | head -50 || true
9091
9192
- name: Dependency deny
93+
shell: bash
9294
run: |
9395
cargo install cargo-deny --locked 2>/dev/null || true
9496
cargo deny check 2>&1 | head -50 || true

crates/aegis-core/src/engine/enforcement_history.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl GraphEngine {
260260
}
261261
}
262262

263-
#[cfg(test)]
263+
#[cfg(all(test, feature = "sqlite"))]
264264
mod tests {
265265
use super::*;
266266
use crate::engine::GraphEngine;

crates/aegis-core/src/engine/scheduler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ impl GraphEngine {
334334
}
335335
}
336336

337-
#[cfg(test)]
337+
#[cfg(all(test, feature = "sqlite"))]
338338
mod tests {
339339
use super::*;
340340
use crate::engine::GraphEngine;

crates/aegis-core/src/telemetry.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,7 @@ pub mod otel_metrics {
326326
}
327327
}
328328

329-
#[cfg(feature = "telemetry")]
330-
#[cfg(test)]
329+
#[cfg(all(test, feature = "telemetry", feature = "sqlite"))]
331330
mod tests {
332331
use super::otel_metrics;
333332
use crate::engine::GraphEngine;

0 commit comments

Comments
 (0)