From 64d35fc8da50ee9f4d06963577a0ff19f38d73e1 Mon Sep 17 00:00:00 2001 From: barshathakuri Date: Wed, 13 Aug 2025 11:53:22 +0545 Subject: [PATCH] ci(add-lint-typescript): Add CI workflow --- .github/workflows/ci.yml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f1968f..e5a45b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Python check +name: CI check on: pull_request: @@ -86,3 +86,39 @@ jobs: git --no-pager diff exit 1 fi + +jobs: + lint-typecheck-build: + name: Lint, Type Check & Build + runs-on: ubuntu-latest + defaults: + run: + working-directory: functions + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + cache-dependency-path: functions/pnpm-lock.yaml + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + run_install: false + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run ESLint + run: pnpm lint + + - name: Run TypeScript type check + run: pnpm typecheck + + - name: Run build + run: pnpm build