From 49fac05435d3e60c00d8b5d5aa852cf0ec60bbad Mon Sep 17 00:00:00 2001 From: lanyeeee Date: Wed, 25 Feb 2026 04:17:52 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E8=87=AA=E5=8A=A8=E6=A3=80=E6=9F=A5pr?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check-format.yml | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/check-format.yml diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml new file mode 100644 index 0000000..90aa939 --- /dev/null +++ b/.github/workflows/check-format.yml @@ -0,0 +1,39 @@ +name: Check Format + +on: + pull_request: + +jobs: + format-check: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: lts/* + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + run_install: false + + - name: Install dependencies + run: pnpm install + + - name: Check Prettier formatting + run: | + pnpm exec prettier --check . + + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + + - name: Check Rust formatting + run: | + cd src-tauri + cargo fmt --all -- --check