mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-04 03:47:19 +01:00
* fix(scroll): preserve reading in page and nested conversations * fix(scroll): distinguish reading gestures from layout-driven scrolling * fix(ci): reuse the actual browser revision through release verification
43 lines
1.6 KiB
YAML
43 lines
1.6 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
# Re-arm strand: a GITHUB_TOKEN merge starts no workflow on its own, so the
|
|
# auto-merge sweep must be able to start CI on main explicitly.
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
verify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
# pnpm version comes from "packageManager" in package.json (SSOT).
|
|
- uses: pnpm/action-setup@v6
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: "24"
|
|
cache: pnpm
|
|
- run: pnpm install --frozen-lockfile
|
|
# The browser checks drive a real Chromium — the only way to prove the
|
|
# mic falls back, text is 16px and nothing overflows at 390px.
|
|
- name: Read Playwright browser revision
|
|
id: playwright
|
|
run: node -p '"version=" + require("playwright/package.json").version' >> "$GITHUB_OUTPUT"
|
|
- name: Cache the verified browser revision
|
|
uses: actions/cache@v6
|
|
with:
|
|
path: ~/.cache/ms-playwright
|
|
key: ${{ runner.os }}-playwright-${{ steps.playwright.outputs.version }}
|
|
- run: pnpm exec playwright install --with-deps chromium
|
|
# Identical to what runs locally: format, lint, types, build, unit +
|
|
# render tests, browser checks.
|
|
- run: pnpm run verify
|
|
# dist/ is committed so a `github:` install needs no build step (pnpm
|
|
# refuses git-dependency builds without a per-SHA allowBuilds entry in
|
|
# every consumer). It must be exactly what the source builds to.
|
|
- name: Committed dist/ matches the source
|
|
run: git diff --exit-code --stat -- dist
|