Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
ci: make the test typecheck a ratchet instead of a permanent red X
Etienne Lescote46877e47381
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex f72f826f5..adbb039db 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -32,19 +32,41 @@ jobs:- run: npx tsc --noEmittypecheck-tests:- name: Typecheck (tests, advisory)+ name: Typecheck (tests)runs-on: ubuntu-latest- # ADVISORY, NOT A GATE — 82 pre-existing errors as of this commit. The main- # Typecheck job cannot see test files at all (tsconfig.json excludes- # **/*.test.ts and includes only src + electron), and vitest transpiles- # without checking, so fixture types have drifted from the schemas they- # claim to build for years. This job makes the drift visible and stops it- # growing silently; flip `continue-on-error` off once the count is zero.- continue-on-error: true+ # A RATCHET, not a gate. tsconfig.json includes only src + electron and+ # excludes **/*.test.ts, so no test file has ever been typechecked, and+ # vitest transpiles without checking — fixture types have drifted from the+ # schemas they claim to build for years. Failing on the whole backlog would+ # put a red X on every PR that nobody can fix, and a check everyone ignores+ # is worse than no check. So: fail only if the count GROWS. Lower BASELINE+ # whenever you fix some; delete this job's baseline logic at zero.steps:- uses: actions/checkout@v4- uses: ./.github/actions/setup- - run: npx tsc -p tsconfig.test.json --noEmit+ - name: Typecheck tests against a baseline+ shell: bash+ env:+ BASELINE: 80+ run: |+ set -uo pipefail+ COUNT=$(npx tsc -p tsconfig.test.json --noEmit 2>&1 | grep -c 'error TS' || true)+ {+ echo "## Test-file typecheck"+ echo ""+ echo "| | |"+ echo "|---|---|"+ echo "| Errors now | ${COUNT} |"+ echo "| Baseline | ${BASELINE} |"+ } >> "$GITHUB_STEP_SUMMARY"+ if [ "${COUNT}" -gt "${BASELINE}" ]; then+ echo "::error::Test-file type errors went ${BASELINE} -> ${COUNT}. Fix the new ones, or raise BASELINE in ci.yml with a reason."+ npx tsc -p tsconfig.test.json --noEmit 2>&1 | grep 'error TS' || true+ exit 1+ fi+ if [ "${COUNT}" -lt "${BASELINE}" ]; then+ echo "::notice::Test-file type errors down to ${COUNT} (baseline ${BASELINE}). Lower BASELINE in ci.yml to lock the win in."+ fidocs:name: Docs