Skip to content

Commit 254a614

Browse files
committed
feat: Add format check
1 parent 6bb1497 commit 254a614

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/format.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Format Check
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Check Formatting
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: "20.x"
16+
- run: |
17+
npm ci
18+
npm run format
19+
git diff --exit-code --name-only

0 commit comments

Comments
 (0)