aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/rust.yml
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-11-01 15:48:34 -0500
committerMatt Strapp <matt@mattstrapp.net>2024-11-01 15:48:34 -0500
commite55df04e362624e2f98274077a29ee65c8453070 (patch)
tree13dbd578b42446da62925bc4477af2ac14f9a7c7 /.github/workflows/rust.yml
parentcodeowners: correct the order (diff)
downloadlocusts-e55df04e362624e2f98274077a29ee65c8453070.tar
locusts-e55df04e362624e2f98274077a29ee65c8453070.tar.gz
locusts-e55df04e362624e2f98274077a29ee65c8453070.tar.bz2
locusts-e55df04e362624e2f98274077a29ee65c8453070.tar.lz
locusts-e55df04e362624e2f98274077a29ee65c8453070.tar.xz
locusts-e55df04e362624e2f98274077a29ee65c8453070.tar.zst
locusts-e55df04e362624e2f98274077a29ee65c8453070.zip
Lint ourselves
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r--.github/workflows/rust.yml10
1 files changed, 7 insertions, 3 deletions
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