From 5ba638e0e4251e453079f65f3efd319952f88138 Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Mon, 28 Oct 2024 14:14:34 -0700 Subject: [PATCH] add rust tests --- .github/workflows/rust_tests.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/rust_tests.yml diff --git a/.github/workflows/rust_tests.yml b/.github/workflows/rust_tests.yml new file mode 100644 index 00000000..3398fd89 --- /dev/null +++ b/.github/workflows/rust_tests.yml @@ -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