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