diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7718a64 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +--- +name: Rust CI + +on: + pull_request: + push: + branches: + - main + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: actions-rs/cargo@v1 + with: + command: check + fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check