From 0936d54fe0734af1590e69210895285a5879a234 Mon Sep 17 00:00:00 2001 From: che Date: Thu, 22 Feb 2024 03:38:45 +0100 Subject: [PATCH] add github workflow --- .github/workflows/main.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..0e1cc94 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,27 @@ +name: main + +on: + push: + branches: [ cli ] + pull_request: + branches: [ cli ] + +env: + CARGO_TERM_COLOR: always + +jobs: + format: + runs-on: ubuntu-latest + + steps: + - name: checkoout + uses: actions/checkout@v3 + + - name: Install latest rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + components: rustfmt + + - name: Format + run: cargo fmt -- --check