Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
filter: tree:0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Checkout Fails, Blocking CI Pipeline

The filter: tree:0 option in the checkout step prevents source code and project files from being cloned. This causes all subsequent CI steps, including dependency installation, typechecking, building, linting, and testing, to fail due to missing files.

Fix in Cursor Fix in Web

fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0

- name: Setup Node.js
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: '23'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Set shas
uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v.4.3.3

- name: Typecheck
run: pnpm nx affected -t typecheck

- name: Build
run: pnpm nx affected -t build

- name: Lint
run: pnpm nx affected -t lint

- name: Test
run: pnpm nx affected -t test