mirror of
https://github.com/babichjacob/ac-qu-ai-nt.git
synced 2025-10-01 16:37:53 -04:00
ci(check-and-build-and-test): add checking Clippy and rearrange the job so that the most important problems are detected first
This commit is contained in:
19
.github/workflows/check-and-build-and-test.yml
vendored
19
.github/workflows/check-and-build-and-test.yml
vendored
@@ -18,8 +18,8 @@ env:
|
|||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
formatting-and-deny-and-audit:
|
audit-and-deny-and-clippy-and-formatting:
|
||||||
name: Check formatting, cargo-deny, and cargo-audit
|
name: Check cargo-audit, cargo-deny, clippy, and formatting
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 4
|
timeout-minutes: 4
|
||||||
steps:
|
steps:
|
||||||
@@ -31,14 +31,21 @@ jobs:
|
|||||||
- name: Install cargo-audit
|
- name: Install cargo-audit
|
||||||
uses: taiki-e/install-action@cargo-audit
|
uses: taiki-e/install-action@cargo-audit
|
||||||
|
|
||||||
- name: Formatting
|
- uses: Swatinem/rust-cache@v2
|
||||||
run: cargo fmt --check --verbose
|
|
||||||
|
- name: cargo-audit
|
||||||
|
run: cargo-audit audit --deny warnings
|
||||||
|
|
||||||
- name: cargo-deny
|
- name: cargo-deny
|
||||||
uses: EmbarkStudios/cargo-deny-action@v2
|
uses: EmbarkStudios/cargo-deny-action@v2
|
||||||
|
|
||||||
- name: cargo-audit
|
- name: Clippy
|
||||||
run: cargo-audit audit --deny warnings
|
run: cargo clippy
|
||||||
|
env:
|
||||||
|
RUSTFLAGS: "--deny warnings"
|
||||||
|
|
||||||
|
- name: Formatting
|
||||||
|
run: cargo fmt --check --verbose
|
||||||
|
|
||||||
check-and-build:
|
check-and-build:
|
||||||
strategy:
|
strategy:
|
||||||
|
Reference in New Issue
Block a user