From 4b31d95e43472ff655026d5063b58ae6111e15b1 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Tue, 9 Jan 2024 11:14:37 -0800 Subject: [PATCH] introduce workflow for checks --- .github/workflows/check.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..4a215b8 --- /dev/null +++ b/.github/workflows/check.yml @@ -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