Add lint and build workflow (#4)

Part of https://plan.wireit.in/deepstack/browse/VUL-309

Co-authored-by: AdityaSalunkhe21 <adityasalunkhe2204@gmail.com>
Reviewed-on: #4
This commit is contained in:
Prathamesh Musale 2025-12-31 10:55:40 +00:00
parent bf6950fc5e
commit f03984e965

View File

@ -0,0 +1,37 @@
name: Lint and Build
on:
pull_request:
branches: [main]
paths:
- 'src/**'
push:
branches: [main]
paths:
- 'src/**'
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"
- name: Enable corepack and yarn
run: corepack enable
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run ESLint
run: yarn lint
- name: Run build
run: yarn build