Add lint and build gitea workflow
All checks were successful
Lint and Build / lint-and-build (18.x) (push) Successful in 44s

This commit is contained in:
Pranav 2025-12-23 18:10:50 +05:30
parent 4e73b98a17
commit 4d3595aac6

View File

@ -0,0 +1,36 @@
name: Lint and Build
on:
push:
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 }}
- name: Enable corepack and yarn
run: corepack enable
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run lint
run: yarn lint
- name: Run build
run: yarn build