mirror of
https://github.com/katanemo/plano.git
synced 2026-04-27 17:56:28 +02:00
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: Checks
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup | Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: 'true'
|
|
# TODO: Remove this once the repo is public
|
|
token: ${{ secrets.ADIL_GITHUB_TOKEN }}
|
|
- 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
|
|
with:
|
|
submodules: 'true'
|
|
# TODO: Remove this once the repo is public
|
|
token: ${{ secrets.ADIL_GITHUB_TOKEN }}
|
|
- 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
|
|
with:
|
|
submodules: 'true'
|
|
# TODO: Remove this once the repo is public
|
|
token: ${{ secrets.ADIL_GITHUB_TOKEN }}
|
|
- name: Setup | Rust
|
|
run: rustup toolchain install stable --profile minimal
|
|
- name: Run Tests
|
|
# --lib is to only test the library, since when integration tests are made,
|
|
# they will be in a seperate tests directory
|
|
run: cd envoyfilter && cargo test --lib
|