From 0addb87499eb715306330cb98a83f9463e3217d4 Mon Sep 17 00:00:00 2001 From: Russell Cloran Date: Thu, 7 Sep 2023 20:13:49 -0700 Subject: [PATCH] Add a basic CI workflow --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml 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