Skip to content

Commit

Permalink
Create lint_format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Diwakar-Gupta authored Dec 22, 2023
1 parent 7d8310b commit 048c918
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/lint_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint and Format Check

on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
inputs:
target_branch:
description: 'Target branch to run the workflow on'
required: true

jobs:
lint_and_format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.target_branch }}

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Lint and Format Check
run: npm run lint && npm run format

0 comments on commit 048c918

Please sign in to comment.