From ec18e92e8e42a1815b72073cc7973768d1891eb9 Mon Sep 17 00:00:00 2001 From: John Whittington Date: Sat, 18 Nov 2023 17:45:27 +0100 Subject: [PATCH] fmt and clippy to ci --- .github/workflows/build.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ff68aa..f0d8110 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,11 @@ -on: [push, pull_request] +on: + push: + branches: + - main + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + pull_request: + workflow_dispatch: name: Test, build and package @@ -62,6 +69,15 @@ jobs: if: matrix.job.use-cross == true run: cargo install cross + - name: Format and clippy + id: format + shell: bash + if: matrix.job.use-cross == false + run: | + cargo fmt -- --check + cargo clippy --all-targets + cargo clippy --all-targets --all-features + - name: Test id: test shell: bash