mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
add rust tests
This commit is contained in:
parent
031d89ad3b
commit
5ba638e0e4
1 changed files with 29 additions and 0 deletions
29
.github/workflows/rust_tests.yml
vendored
Normal file
29
.github/workflows/rust_tests.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Rust Tests (prompt and llm gateway)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup | Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup | Rust
|
||||
run: rustup toolchain install stable --profile minimal
|
||||
|
||||
- name: Setup | Install wasm toolchain
|
||||
run: rustup target add wasm32-wasi
|
||||
|
||||
- name: Build wasm module
|
||||
run: cd crates && cargo build --release --target=wasm32-wasi
|
||||
|
||||
- name: Run unit tests
|
||||
run: cd crates && cargo test --lib
|
||||
|
||||
- name: Run integration tests
|
||||
run: cd crates && cargo test --test integration
|
||||
Loading…
Add table
Add a link
Reference in a new issue