Add lint and build github workflow

This commit is contained in:
AdityaSalunkhe21 2025-12-18 18:30:46 +05:30
parent 438db6d5c6
commit ff36c51420

35
.github/workflows/lint-and-build.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Lint and Build
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
lint-and-build:
name: Run lint and build checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
cache-dependency-path: yarn.lock
- name: Enable corepack (Yarn)
run: corepack enable
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run ESLint
run: yarn lint
- name: Run build
run: yarn build