Skip to content

ci: run tests and non-mutating lint/typecheck, clean biome/package.json, fix install-local.sh - #18

Merged
willtmc merged 1 commit into
mainfrom
ci/tests-lint-and-install-local
Nov 25, 2026
Merged

willtmc merged 1 commit into
mainfrom
ci/tests-lint-and-install-local

Conversation

@willtmc

@willtmc willtmc commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • CI (.github/workflows/ci.yml): Add explicit permissions: { contents: read }, trigger on push to main and all pull_request events, and run non-mutating npm run lint, npm run typecheck, npm run build, and npm test.
  • Scripts & Dependencies (package.json, package-lock.json):
    • Remove redundant @typescript/native-preview (tsgo) devDependency and keep standard typescript (tsc).
    • Split mutating check into non-mutating lint (biome check src/), explicit format (biome check src/ --write), typecheck (tsc --noEmit), and non-mutating check (npm run lint && npm run typecheck).
  • Biome (biome.json):
    • Align $schema with installed Biome 1.9.4.
    • Re-enable "noUnusedVariables": "error" (verified clean across src/).
  • Local install verification (scripts/install-local.sh, test/install-local.test.js):
    • Verify the npm global binary at $(npm prefix -g)/bin/gmcli against dist/cli.js (byte comparison and direct --help parity) instead of $(command -v gmcli).
    • Avoid executing PATH wrappers (such as ~/.local/bin/gmcli Doppler shims) and print an informational note when PATH resolves gmcli to a different binary.
    • Update test/install-local.test.js to cover stale npm global binary rejection, matching npm global binary verification, and PATH wrapper tolerance without invoking the wrapper.

Verification

  • npm ci --no-audit --no-fund — passed
  • npm run lint — passed (Checked 7 files. No fixes applied.)
  • npm run typecheck — passed
  • npm run build — passed
  • npm test — passed (28/28 tests passing)
  • bash -n scripts/install-local.sh — passed

@willtmc
willtmc merged commit 0abe7b8 into main Nov 25, 2026
1 check passed
@willtmc
willtmc deleted the ci/tests-lint-and-install-local branch November 25, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant