Skip to content

Commit 05e1ae6

Browse files
Merge pull request #8 from KrinsKumar/issue7-gh-actions-for-linting
Feat: Add CI/CD Workflow for enabling linting.
2 parents d295cfd + 2583312 commit 05e1ae6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: PR Lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- develop
8+
- feature/*
9+
# Add your branch name/pattern here
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '16'
23+
cache: 'npm'
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Run linter
29+
run: npm run lint

0 commit comments

Comments
 (0)