Skip to content

Commit

Permalink
ci: add format-checking and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLostLambda committed Mar 18, 2024
1 parent 9e82604 commit 285bc51
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,15 @@ jobs:

- run: just test
- run: just bench

format_and_lint:
name: Format & Lint
run-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: extractions/setup-just@v2
- uses: dtolnay/rust-toolchain@stable

- run: just lint
- run: just annoy
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ bench:
cargo bench --workspace

lint:
cargo fmt --check
cargo clippy --workspace --tests

# FIXME: Get rid of these -A flags
Expand Down

0 comments on commit 285bc51

Please sign in to comment.