From 5c877d505296d2206b4d394916b68187d0bdcbab Mon Sep 17 00:00:00 2001 From: barshathakuri Date: Wed, 8 Oct 2025 11:02:23 +0545 Subject: [PATCH] ci(add-lint-typecheck): Update github action --- .github/workflows/ci.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f1968f..72a116e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Python check +name: Pre-Commit & JS Checks on: pull_request: @@ -86,3 +86,34 @@ jobs: git --no-pager diff exit 1 fi + + js_checks: + name: JS Lint & Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@main + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + package_json_file: ./functions/package.json + + - name: Setup node environment + uses: actions/setup-node@v4 + with: + node-version-file: ./functions/package.json + cache: 'pnpm' + cache-dependency-path: ./functions/pnpm-lock.yaml + + - name: Install JS dependencies + working-directory: ./functions + run: pnpm install --frozen-lockfile + + - name: Run lint + working-directory: ./functions + run: pnpm lint + + - name: Build project + working-directory: ./functions + run: pnpm build