Skip to content

Commit 24827fb

Browse files
committed
Add eslint to gh workflow
1 parent 7766089 commit 24827fb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/frontend.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Frontend CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "frontend/**"
9+
pull_request:
10+
branches:
11+
- main
12+
paths:
13+
- "frontend/**"
14+
15+
jobs:
16+
Run ESLint:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: "18.x"
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
working-directory: frontend
31+
32+
- name: Run ESLint
33+
run: npm lint
34+
working-directory: frontend

0 commit comments

Comments
 (0)