From 667f01702c055abd4af4ab68bfcf4abf6edbb306 Mon Sep 17 00:00:00 2001 From: Lucas Berger Date: Thu, 11 Jun 2026 10:21:17 -0400 Subject: [PATCH] feat(08-02): ci.yml fast-checks job - on: pull_request + push branches:[main]; workflow env MILESTONE: v1.1 - fast-checks job: runs-on ubuntu-latest, if pull_request - Node 22 via actions/setup-node@v4 + corepack enable pnpm - No actions/cache (D-PROBE-04: times out on this runner) - pnpm install --frozen-lockfile, lint (no-op), typecheck, PWA unit tests - DB-backed pnpm test intentionally absent from this job --- .gitea/workflows/ci.yml | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..9ad3e6c --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + +env: + MILESTONE: v1.1 + +jobs: + fast-checks: + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '22' + + - name: Enable pnpm + run: corepack enable pnpm + + # actions/cache@v4 is intentionally omitted — probe (D-PROBE-04) showed it + # times out on this runner (socket hang-up between runner container and job + # container cache server). pnpm install without cache takes ~30s; acceptable. + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + # lint is currently a no-op: no package defines a `lint` script and ESLint is + # not installed. `pnpm -r lint` prints ERR_PNPM_RECURSIVE_RUN_NO_SCRIPT but + # exits 0, so this step passes. Wiring lint is out of this phase's scope. + - name: Lint + run: pnpm lint + + - name: Typecheck + run: pnpm typecheck + + - name: PWA unit tests + run: pnpm --filter @familysync/pwa test