add precommit check (#97)

* add precommit check

* remove check

* Revert "remove check"

This reverts commit 9987b62b9b.

* fix checks

* fix whitespace errors
This commit is contained in:
Adil Hafeez 2024-09-30 14:54:01 -07:00 committed by GitHub
parent 1e61452310
commit 4182879717
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 292 additions and 312 deletions

View file

@ -3,33 +3,6 @@ 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 on arch
run: cd arch && cargo clippy --all-targets --all-features -- -Dwarnings
- name: Run Clippy on public_types
run: cd public_types && 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 on arch
run: cd arch && cargo fmt -p intelligent-prompt-gateway -- --check
- name: Run Rustfmt on public_types
run: cd public_types && cargo fmt -p public_types -- --check
test:
name: Test
runs-on: ubuntu-latest