-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 2.06 KB
/
Copy pathci.yml
File metadata and controls
55 lines (47 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
# Minimal CI floor for this scaffold: build the shared types package, then
# type-check every backend service AND the frontend. This is a compile/type gate
# only — it keeps the scaffold from rotting without pretending to be a test suite.
#
# Intentionally NOT gated here (needs a human decision, see PR notes):
# * Lint. The services ship no ESLint config (and 3 of 4 lack the eslint dep),
# and the frontend's eslint-config-next@16 / eslint@9 / next@14 combo currently
# crashes ESLint. Wiring lint requires dependency changes, so it's out of scope
# for this additive floor.
# * Running the services / full E2E — needs docker-compose + Postgres + Redis infra.
#
# `pnpm run verify` (root package.json) is the single source of truth for these checks;
# CI runs it verbatim so local green == CI green.
on:
workflow_dispatch: {}
push:
branches: [master, main]
pull_request:
jobs:
verify:
name: Verify (lint + typecheck + test)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# pnpm before setup-node so `cache: pnpm` can find the store.
- uses: pnpm/action-setup@v6
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: 24
cache: pnpm
cache-dependency-path: |
pnpm-lock.yaml
frontend/pnpm-lock.yaml
- name: Install workspace dependencies (services + shared)
run: pnpm install --frozen-lockfile
# The frontend is deliberately not a workspace member — it keeps its own
# lockfile and installs, exactly as it did under npm.
- name: Install frontend dependencies
working-directory: frontend
run: pnpm install --frozen-lockfile
# SSOT: the gate bundle is defined once, in package.json `verify`, and CI
# calls it verbatim. Do not inline checks here — a check that exists only
# in CI cannot be run before pushing, which is the whole point of verify.
- name: Verify (build shared types, lint + typecheck + test, tenant SSOT)
run: pnpm run verify