From d80bc2970199bd9d2f4d8c9b6fbac4ddb5f3f1d7 Mon Sep 17 00:00:00 2001 From: KGFCH2 Date: Thu, 25 Jun 2026 17:26:30 +0530 Subject: [PATCH] ci: set up build and lint GitHub Action workflow --- .github/workflows/main.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3af7f28..73231e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,12 +1,30 @@ -name: Test Workflow +name: CI Build and Lint on: push: + branches: [ main ] + pull_request: + branches: [ main ] jobs: - test: + build: runs-on: ubuntu-latest steps: - - name: Hello - run: echo "Workflow is working!" + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'npm' + + - name: Install Dependencies + run: npm ci + + - name: Run Lint (Type Check) + run: npm run lint + + - name: Build Project + run: npm run build