mirror of
https://github.com/katanemo/plano.git
synced 2026-04-24 16:26:34 +02:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Checks
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup | Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup | Rust
|
|
run: rustup toolchain install stable --profile minimal
|
|
- name: Run Clippy
|
|
run: cd envoyfilter && cargo clippy --all-targets --all-features -- -Dwarnings
|
|
|
|
format:
|
|
name: Rustfmt
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Setup | Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup | Rust
|
|
run: rustup toolchain install stable --profile minimal
|
|
- name: Run Rustfmt
|
|
run: cd envoyfilter && cargo fmt -p intelligent-prompt-gateway -- --check
|
|
|
|
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 envoyfilter && cargo build --release --target=wasm32-wasi
|
|
- name: Run Tests
|
|
run: cd envoyfilter && cargo test
|