diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..13d342f --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,32 @@ +name: Rust +on: + push: + branches: + - main + tags: + - "**" + + pull_request: + branches: + - "**" + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable + with: + components: clippy, rustfmt + + - name: Run tests + run: cargo test --all-features + + - name: Clippy + run: cargo clippy + + - name: Fmt + run: cargo fmt -- --files-with-diff --check