Skip to content

Commit 297f12b

Browse files
Merge pull request #76 from htmlacademy/feature/action
Adds github actions eslint for PR
2 parents 4226519 + 4a57df2 commit 297f12b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/eslint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: ESLint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
jobs:
8+
eslint:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3.5.3
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3.7.0
17+
with:
18+
node-version: 18
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Run ESLint
24+
run: npm run eslint

0 commit comments

Comments
 (0)