Skip to content

Commit f22a2ce

Browse files
ci(tests): format, lint and test testkit in Branch Checks
Nothing else builds testkit, so check it in Branch Checks and the matching mise tasks to catch openshell-sdk changes that break it. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent b0431dc commit f22a2ce

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/branch-checks.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ jobs:
221221
cargo fmt --manifest-path examples/governance-interceptor/Cargo.toml --all -- --check
222222
cargo fmt --manifest-path examples/supervisor-middleware-content-guard/Cargo.toml --all -- --check
223223
cargo fmt --manifest-path examples/isolation-backend-v8/Cargo.toml --all -- --check
224+
cargo fmt --manifest-path tests/testkit/Cargo.toml --all -- --check
224225
225226
cargo-lockfiles:
226227
name: Cargo lockfiles
@@ -277,6 +278,7 @@ jobs:
277278
cargo clippy --locked --manifest-path examples/governance-interceptor/Cargo.toml --all-targets -- -D warnings
278279
cargo clippy --locked --manifest-path examples/supervisor-middleware-content-guard/Cargo.toml --all-targets -- -D warnings
279280
cargo clippy --locked --manifest-path examples/isolation-backend-v8/Cargo.toml --all-targets -- -D warnings
281+
cargo clippy --locked --manifest-path tests/testkit/Cargo.toml --all-targets -- -D warnings
280282
281283
rust-test:
282284
name: Rust test (${{ matrix.system }})
@@ -325,6 +327,7 @@ jobs:
325327
run: |
326328
cargo nextest run --locked --profile ci --workspace --features openshell-server/test-support
327329
cargo nextest run --locked --config-file .config/nextest.toml --profile ci --manifest-path examples/supervisor-middleware-content-guard/Cargo.toml
330+
cargo nextest run --locked --config-file .config/nextest.toml --profile ci --manifest-path tests/testkit/Cargo.toml
328331
329332
rust-postgres-test:
330333
name: Rust PostgreSQL tests

‎tasks/rust.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ run = [
3333
"cargo clippy --manifest-path examples/governance-interceptor/Cargo.toml --all-targets -- -D warnings",
3434
"cargo clippy --manifest-path examples/supervisor-middleware-content-guard/Cargo.toml --all-targets -- -D warnings",
3535
"cargo clippy --manifest-path examples/isolation-backend-v8/Cargo.toml --all-targets -- -D warnings",
36+
"cargo clippy --manifest-path tests/testkit/Cargo.toml --all-targets -- -D warnings",
3637
]
3738
run_windows = "powershell -NoProfile -ExecutionPolicy Bypass -File tasks/scripts/windows-msvc.ps1 lint native"
3839
hide = true
@@ -45,6 +46,7 @@ run = [
4546
"cargo fmt --manifest-path examples/governance-interceptor/Cargo.toml --all",
4647
"cargo fmt --manifest-path examples/supervisor-middleware-content-guard/Cargo.toml --all",
4748
"cargo fmt --manifest-path examples/isolation-backend-v8/Cargo.toml --all",
49+
"cargo fmt --manifest-path tests/testkit/Cargo.toml --all",
4850
]
4951
hide = true
5052

@@ -56,6 +58,7 @@ run = [
5658
"cargo fmt --manifest-path examples/governance-interceptor/Cargo.toml --all -- --check",
5759
"cargo fmt --manifest-path examples/supervisor-middleware-content-guard/Cargo.toml --all -- --check",
5860
"cargo fmt --manifest-path examples/isolation-backend-v8/Cargo.toml --all -- --check",
61+
"cargo fmt --manifest-path tests/testkit/Cargo.toml --all -- --check",
5962
]
6063
hide = true
6164

‎tasks/test.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ run = [
119119
"cargo test --workspace --exclude openshell-server",
120120
"cargo test -p openshell-server --features test-support",
121121
"cargo nextest run --config-file .config/nextest.toml --manifest-path examples/supervisor-middleware-content-guard/Cargo.toml",
122+
"cargo nextest run --config-file .config/nextest.toml --manifest-path tests/testkit/Cargo.toml",
122123
]
123124
run_windows = "powershell -NoProfile -ExecutionPolicy Bypass -File tasks/scripts/windows-msvc.ps1 test-precommit native"
124125
hide = true

0 commit comments

Comments
 (0)