Add lint and build github workflow

This commit is contained in:
AdityaSalunkhe21 2025-12-19 13:52:25 +05:30
parent 47af6e0bcf
commit 4e73b98a17

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

@ -0,0 +1,36 @@
name: Lint and Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-and-build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run lint
run: yarn lint
- name: Run build
run: yarn build