From 4e73b98a17b3eb28795852b2af1f1fbeb4fe67df Mon Sep 17 00:00:00 2001 From: AdityaSalunkhe21 Date: Fri, 19 Dec 2025 13:52:25 +0530 Subject: [PATCH] Add lint and build github workflow --- .github/workflows/lint-and-build.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/lint-and-build.yml diff --git a/.github/workflows/lint-and-build.yml b/.github/workflows/lint-and-build.yml new file mode 100644 index 0000000..10b2028 --- /dev/null +++ b/.github/workflows/lint-and-build.yml @@ -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