From 285bc511360a6a11339c70f7d5d669383b228635 Mon Sep 17 00:00:00 2001 From: Brooks J Rady Date: Mon, 18 Mar 2024 16:13:25 -0700 Subject: [PATCH] ci: add format-checking and linting --- .github/workflows/ci.yml | 10 ++++++++++ justfile | 1 + 2 files changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a30cd8e..5241248 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/justfile b/justfile index 5961206..a753933 100644 --- a/justfile +++ b/justfile @@ -13,6 +13,7 @@ bench: cargo bench --workspace lint: + cargo fmt --check cargo clippy --workspace --tests # FIXME: Get rid of these -A flags