Skip to content

Commit 660e05a

Browse files
committed
add basic prettier lint script
1 parent a624768 commit 660e05a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Prettier Lint
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
prettier:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v5
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "24"
20+
21+
- name: Install dependencies
22+
run: npm install -g prettier
23+
24+
- name: Run Prettier
25+
run: npx prettier --check .

0 commit comments

Comments
 (0)