mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
ci(rust): reorder static analysis (#9025)
Running `clippy` first is more useful because it provides better feedback around compile-errors. When working with cross-platform code, it is often the case that one needs to push to CI to ensure everything builds. Therefore, getting fast feedback is important.
This commit is contained in:
16
.github/workflows/_rust.yml
vendored
16
.github/workflows/_rust.yml
vendored
@@ -42,16 +42,16 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tool: bpf-linker
|
||||
- run: |
|
||||
cargo +${{ steps.setup-rust.outputs.nightly_version }} udeps --all-targets --all-features ${{ steps.setup-rust.outputs.compile-packages }}
|
||||
name: Check for unused dependencies
|
||||
- run: cargo fmt -- --check
|
||||
- run: cargo doc --all-features --no-deps --document-private-items ${{ steps.setup-rust.outputs.compile-packages }}
|
||||
name: "cargo doc"
|
||||
shell: bash
|
||||
|
||||
- run: cargo clippy --all-targets --all-features ${{ steps.setup-rust.outputs.compile-packages }}
|
||||
name: "cargo clippy"
|
||||
name: cargo clippy
|
||||
shell: bash
|
||||
- run: cargo doc --all-features --no-deps --document-private-items ${{ steps.setup-rust.outputs.compile-packages }}
|
||||
name: cargo doc
|
||||
shell: bash
|
||||
- run: cargo fmt -- --check
|
||||
- run: cargo +${{ steps.setup-rust.outputs.nightly_version }} udeps --all-targets --all-features ${{ steps.setup-rust.outputs.compile-packages }}
|
||||
name: cargo udeps
|
||||
- run: cargo deny check --hide-inclusion-graph --deny unnecessary-skip
|
||||
shell: bash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user