Skip to content

Commit 382e9c3

Browse files
authored
action
1 parent 6962740 commit 382e9c3

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lint and Prettier Check
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
lint:
11+
name: Code Style Check
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: 📥 Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: 🟢 Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '18'
22+
23+
- name: 📦 Install dependencies
24+
run: npm install
25+
26+
- name: ✅ Run ESLint
27+
run: npx eslint . --ext .js
28+
29+
- name: 🎨 Run Prettier (Check Mode)
30+
run: npx prettier . --check

0 commit comments

Comments
 (0)