mirror of
https://github.com/bitbaum/speechkit.git
synced 2026-12-04 03:47:44 +01:00
Extracted from Heidi's speaking practice, where it measures Zurich German learners. Language-agnostic: vowels, fillers, dialect markers and the grammar code are passed in; nothing here names a language. Four layers: signal (pauses and runs from raw samples — works on a dialect nothing transcribes), evidence (a translated transcript is never evidence about form), words (rate, where a long pause fell, did the recogniser answer in the variety spoken), grammar (your own LanguageTool, filtered to what a speaker is answerable for). No pronunciation score, and a test on the built package fails if an export starts to look like one. dist/ committed so `github:bitbaum/speechkit#v1.0.0` installs without a build; CI fails if it drifts from the source. npm publishing is wired (tag-driven, tokenless) but gated off until the one-time passkey bootstrap in the README. 90 unit tests on the source, 4 on dist/. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
31 lines
972 B
YAML
31 lines
972 B
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
|
|
# Identical to what runs locally: format, lint, types, build, unit tests
|
|
# on the source, tests on the built package.
|
|
- run: pnpm run verify
|
|
# dist/ is committed so a `github:` install needs no build step. It must
|
|
# be exactly what the source builds to.
|
|
- name: Committed dist/ matches the source
|
|
run: git diff --exit-code --stat -- dist
|