singularity-forge/scripts
Jeremy 13bad4f4e9 ci: enforce test requirements and coverage thresholds on PRs
Add two CI gates to enforce CONTRIBUTING.md test requirements:

1. File-matching check (lint job): fails PRs that change source files
   without including test file changes. Exempts docs/chore/ci branches.

2. Coverage gate (build job): wires existing `npm run test:coverage`
   into CI with c8 thresholds (40% statements/lines, 20% branches/functions).
   Previously defined in package.json but never ran in CI.

Lowers coverage thresholds from 50% to 40% for statements/lines to match
current codebase reality (~44%) — prevents the gate from blocking every PR
on day one while still catching coverage regressions.
2026-03-26 17:55:53 -05:00
..
base64-scan.sh ci(security): add base64-encoded directive scan to lint job (#2371) 2026-03-24 13:34:25 -06:00
build-web-if-stale.cjs fix: skip web build on Windows — Next.js webpack hits EPERM on system dirs 2026-03-21 13:30:23 -06:00
bump-version.mjs feat(ci): automate prod-release with version bump, changelog, and tag push (#1194) 2026-03-18 11:17:43 -06:00
check-skill-references.mjs fix: remove broken SwiftUI skill and add CI reference check (#1476) (#1520) 2026-03-19 18:04:37 -06:00
ci_monitor.cjs feat: add GitHub Workflows skill with CI workflow and ci_monitor tool (#294) 2026-03-13 22:31:17 -06:00
ci_monitor.md feat: add GitHub Workflows skill with CI workflow and ci_monitor tool (#294) 2026-03-13 22:31:17 -06:00
copy-export-html.cjs refactor: extract inline build scripts from package.json to files 2026-03-16 13:34:05 -05:00
copy-resources.cjs fix: apply pi manifest opt-out to extension-discovery.ts (#1545) 2026-03-20 08:11:51 -06:00
copy-themes.cjs refactor: extract inline build scripts from package.json to files 2026-03-16 13:34:05 -05:00
dev-cli.js feat(web): browser-based web interface (#1717) 2026-03-21 12:16:54 -06:00
dev.js refactor: deduplicate help text, cross-platform validate-pack, fix dev.js 2026-03-16 13:29:31 -05:00
docs-prompt-injection-scan.sh feat(ci): skip build/test for docs-only PRs and add prompt injection scan (#1699) 2026-03-21 08:39:03 -06:00
ensure-workspace-builds.cjs fix: prevent getLoadedSkills crash and auto-build workspace packages (#1767) 2026-03-21 09:19:48 -06:00
generate-changelog.mjs feat(ci): automate prod-release with version bump, changelog, and tag push (#1194) 2026-03-18 11:17:43 -06:00
install-hooks.sh fix: restore PR files lost during merge conflict resolution 2026-03-25 22:39:33 -06:00
install-pi-global.js Add pi global install scripts (#57) 2026-03-11 14:34:03 -06:00
link-workspace-packages.cjs fix: detect broken install and add Windows symlink fallback (#890) 2026-03-17 09:35:57 -06:00
postinstall.js feat: managed RTK integration with opt-in preference and web UI toggle (#2620) 2026-03-26 09:33:07 -06:00
pr-risk-check.mjs chore: consolidate docs, remove stale artifacts, and repo hygiene (#2665) 2026-03-26 09:13:41 -06:00
preview-dashboard.ts feat(dashboard): two-column layout with redesigned widget (#1530) 2026-03-19 20:07:18 -06:00
recover-gsd-1364.ps1 fix: recover + prevent #1364 .gsd/ data-loss (v2.30.0–v2.38.0) (#1635) 2026-03-20 13:26:09 -06:00
recover-gsd-1364.sh fix: recover + prevent #1364 .gsd/ data-loss (v2.30.0–v2.38.0) (#1635) 2026-03-20 13:26:09 -06:00
recover-gsd-1668.ps1 fix(worktree): detect default branch instead of hardcoding "main" on milestone merge (#1668) (#1669) 2026-03-21 08:34:55 -06:00
recover-gsd-1668.sh fix(worktree): detect default branch instead of hardcoding "main" on milestone merge (#1668) (#1669) 2026-03-21 08:34:55 -06:00
require-tests.sh ci: enforce test requirements and coverage thresholds on PRs 2026-03-26 17:55:53 -05:00
rtk-benchmark.mjs feat: managed RTK integration with opt-in preference and web UI toggle (#2620) 2026-03-26 09:33:07 -06:00
secret-scan.sh feat: add pre-commit secret scanner and CI secret detection (#1148) 2026-03-18 08:33:17 -06:00
stage-web-standalone.cjs feat(web): browser-based web interface (#1717) 2026-03-21 12:16:54 -06:00
sync-pkg-version.cjs feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
uninstall-pi-global.js Add pi global install scripts (#57) 2026-03-11 14:34:03 -06:00
update-changelog.mjs feat(ci): automate prod-release with version bump, changelog, and tag push (#1194) 2026-03-18 11:17:43 -06:00
validate-pack.js feat(web): browser-based web interface (#1717) 2026-03-21 12:16:54 -06:00
validate-pack.sh fix: broken npm install — remove bundleDependencies, use postinstall symlinks (#369) 2026-03-14 10:04:12 -06:00
verify-s03.sh feat(wizard): add BRAVE_ANSWERS_KEY support 2026-03-10 22:44:28 -06:00
verify-s04.sh Replace remaining 'get stuff done' instances in verify script 2026-03-11 08:11:11 -06:00
version-stamp.mjs feat(ci): implement three-stage promotion pipeline (Dev → Test → Prod) (#1098) 2026-03-18 00:40:06 -06:00
watch-resources.js fix(memory): fix memory and resource leaks across TUI, LSP, DB, and automation (#2314) 2026-03-24 07:23:36 -06:00