From 6d73fd1d94552f9dc6e0eafb6039573a4858206f Mon Sep 17 00:00:00 2001 From: Ralph Ursprung Date: Thu, 30 May 2024 17:01:03 +0200 Subject: [PATCH] CI: move static code checks to ubuntu-only action this has two reasons: - the format & audit checks are the same on all platforms, thus running it multiple times adds no benefits - `cargo-audit` seems to be no longer provided on the Mac OS VMs and would now have to be manually added (but is still present on Ubuntu & Windows). --- .github/workflows/CI.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index cbd90ab..84d1423 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -36,12 +36,8 @@ jobs: run: cargo check ${{ matrix.features }} - name: test run: cargo test ${{ matrix.features }} - - name: check formatting - run: cargo fmt --all -- --check - - name: audit - run: cargo audit - clippy: + static-code-checks: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -56,3 +52,7 @@ jobs: with: sarif_file: rust-clippy-results.sarif wait-for-processing: true + - name: check formatting + run: cargo fmt --all -- --check + - name: audit + run: cargo audit