introduce workflow for checks

This commit is contained in:
Alex Zenla 2024-01-09 11:14:37 -08:00
parent c9f61ec72f
commit 4b31d95e43
No known key found for this signature in database
GPG Key ID: 067B238899B51269

28
.github/workflows/check.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: check
on: [push, pull_request]
jobs:
build:
name: cargo build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --all-features
clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --all-features
rustfmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt