Skip to content

Commit

Permalink
Merge pull request #8 from KrinsKumar/issue7-gh-actions-for-linting
Browse files Browse the repository at this point in the history
Feat: Add CI/CD Workflow for enabling linting.
  • Loading branch information
dakshsinghrathore authored Oct 22, 2024
2 parents d295cfd + 2583312 commit 05e1ae6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PR Lint

on:
pull_request:
branches:
- main
- develop
- feature/*
# Add your branch name/pattern here

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run linter
run: npm run lint

0 comments on commit 05e1ae6

Please sign in to comment.