From e55df04e362624e2f98274077a29ee65c8453070 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Fri, 1 Nov 2024 15:48:34 -0500 Subject: Lint ourselves Signed-off-by: Matt Strapp --- .github/workflows/rust.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.github/workflows/rust.yml') diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d95200a..2f86db0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,8 +13,8 @@ on: - ".github/workflows/rust.yml" jobs: - build-and-test: - name: Build and Test + lint-build-test: + name: Lint, Lint, Build and Test runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -24,12 +24,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Lint + run: | + cargo fmt --all --check + cargo clippy - name: Test run: cargo test --verbose publish: name: Publish to crates.io - needs: build-and-test + needs: lint-build-test # Only run on this on proper semver (vX.Y.Z) tags if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }} runs-on: ubuntu-latest -- cgit v1.2.3