From fef9395a2c1040067da358bf105fb87a717826a8 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Tue, 27 Aug 2024 20:32:33 -0400 Subject: [PATCH] Add format check CI task (#658) --- .github/workflows/format.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/format.yaml diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml new file mode 100644 index 000000000..bd2a669e7 --- /dev/null +++ b/.github/workflows/format.yaml @@ -0,0 +1,23 @@ +name: Prettier Check + +on: + pull_request: + branches: [ main, master ] + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: lts/* + + - name: Install dependencies + run: npm ci + + - name: Run Prettier check + run: npx prettier --check './**/*.{js,ts,tsx,vue}' \ No newline at end of file