introduce workflow for checks

This commit is contained in:
Alex Zenla committed 2024-01-09 11:18:53 -08:00
1 parent c9f61ec72f
commit 4b31d95e43
1 file changed
+28
+28
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