Skip to content

Commit

Permalink
CI: move static code checks to ubuntu-only action
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
rursprung committed May 30, 2024
1 parent 09b7597 commit 6d73fd1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 6d73fd1

Please sign in to comment.