From efe9fe24363589fdb7e37f8938973a0f6950654d Mon Sep 17 00:00:00 2001 From: limuy Date: Sun, 19 May 2024 09:41:18 +0800 Subject: [PATCH] add fmt action --- .github/workflows/fmt.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/fmt.yml diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml new file mode 100644 index 00000000..656ae98a --- /dev/null +++ b/.github/workflows/fmt.yml @@ -0,0 +1,19 @@ +name: Rust + +on: + push: + branches: ["master", "dev"] + pull_request: + branches: ["master", "dev"] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Check Fmt + run: cargo fmt -- --check