Skip to content

Update test.yml

Update test.yml #4

Workflow file for this run

name: Tests & Build
on: [push, pull_request]
jobs:
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
audit:
name: cargo audits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy,rustfmt
- run: cargo install cargo-audit
- run: cargo install --locked cargo-vet
- run: cargo clippy -- -D warnings --no-deps
- run: cargo vet --locked
- run: cargo audit -D unsound -D yanked -D unmaintained --ignore "RUSTSEC-2020-0168"
build:
name: cargo build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build