-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (53 loc) · 2.2 KB
/
Copy pathci.yml
File metadata and controls
65 lines (53 loc) · 2.2 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
56
57
58
59
60
61
62
63
64
65
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
# ── Root package ──────────────────────────────────
- name: Install root dependencies
run: npm ci
- name: Build package (tsup + sass + types)
run: npm run build
- name: Run tests (Calendar + DateRange only)
run: npm run test:ci
# ── Consumer JS (smoke: build) ────────────────────
- name: 'Spike: consumer-js build'
working-directory: spikes/consumer-js
run: npm ci && npm run build
# ── Consumer TSX (typecheck validates compiled types) ─
- name: 'Spike: consumer-tsx typecheck'
working-directory: spikes/consumer-tsx
run: npm ci && npm run typecheck
# ── React 18 + TypeScript typecheck ───────────────
- name: 'Spike: react-18-ts typecheck'
working-directory: spikes/react-18-ts
run: npm ci && npm run typecheck
# ── React 19 + TypeScript typecheck ───────────────
- name: 'Spike: react-19-ts typecheck'
working-directory: spikes/react-19-ts
run: npm ci && npm run typecheck
# ── StrictMode scroll fix typecheck ───────────────
- name: 'Spike: scroll-strictmode typecheck'
working-directory: spikes/scroll-strictmode
run: npm ci && npm run typecheck
# ── Published alpha demo (registry install) ─────────
- name: 'Demo: build published alpha app'
working-directory: demo
run: npm ci && npm run typecheck && npm run build
# ── SSR import safety (CJS + ESM) ─────────────────
- name: 'Spike: ssr-import tests'
working-directory: spikes/ssr-import
run: npm ci && npm test