Merge pull request #11 from bartvdbraak/feat/checks-with-annotations

Checks with annotations or summary
This commit is contained in:
Bart van der Braak 2023-11-08 00:49:59 +01:00 committed by GitHub
commit 196959f7c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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