mirror of
https://github.com/bartvdbraak/keyweave.git
synced 2025-04-27 23:01:20 +00:00
feat: use separate jobs for checks
This commit is contained in:
parent
48821825c8
commit
32153efb4c
1 changed files with 32 additions and 16 deletions
48
.github/workflows/checks.yml
vendored
48
.github/workflows/checks.yml
vendored
|
@ -6,26 +6,42 @@ on:
|
|||
- main
|
||||
|
||||
jobs:
|
||||
fmt:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- id: fmt
|
||||
name: Format code with rustfmt
|
||||
run: |
|
||||
cargo fmt --all -- --check
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: Lint code with clippy
|
||||
run: cargo clippy --all -- --deny warnings
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: Install cargo-audit
|
||||
run: cargo install cargo-audit
|
||||
- name: Check for known vulnerabilities with cargo-audit
|
||||
run: cargo audit
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: Run tests
|
||||
run: cargo test --all
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Install cargo-audit
|
||||
run: cargo install cargo-audit
|
||||
|
||||
- name: Format code with rustfmt
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
- name: Lint code with clippy
|
||||
run: cargo clippy --all -- --deny warnings
|
||||
|
||||
- name: Check for known vulnerabilities with cargo-audit
|
||||
run: cargo audit
|
||||
|
||||
- name: Build project
|
||||
run: cargo build --all --release
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --all
|
||||
|
|
Loading…
Reference in a new issue