Skip to content

Commit

Permalink
Add format check CI task (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Aug 28, 2024
1 parent 698754b commit fef9395
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
@@ -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}'

0 comments on commit fef9395

Please sign in to comment.