Skip to content

Commit 15df9fa

Browse files
committed
feat: add lint workflow
1 parent 0405c4f commit 15df9fa

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/lint.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lint Check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: "18"
17+
cache: "npm"
18+
cache-dependency-path: frontend/package-lock.json
19+
20+
- name: Install dependencies
21+
run: |
22+
cd frontend
23+
npm ci
24+
25+
- name: Run lint
26+
run: |
27+
cd frontend
28+
npm run lint
29+
30+
- name: Check formatting
31+
run: |
32+
cd frontend
33+
npm run format:check

0 commit comments

Comments
 (0)