mirror of
https://github.com/bartvdbraak/keyweave.git
synced 2025-04-28 15:21:21 +00:00
feat: workflow with several checks
This commit is contained in:
parent
609e4fe6da
commit
fd1872ca1c
1 changed files with 31 additions and 0 deletions
31
.github/workflows/checks.yml
vendored
Normal file
31
.github/workflows/checks.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: Checks
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
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