Skip to content

Conversation

@newhook
Copy link
Owner

@newhook newhook commented Jan 25, 2026

Summary

  • Add CI workflow that runs tests, lint (golangci-lint v2.8.0), and build on PRs to main
  • Consolidate .mise.toml into mise.toml (single config file)
  • Switch lefthook and yq to use aqua registry

Test plan

  • Verify CI workflow runs on this PR
  • Confirm all three jobs (test, lint, build) pass

🤖 Generated with Claude Code

newhook and others added 6 commits January 25, 2026 13:15
- Add CI workflow that runs tests, lint, and build on PRs
- Consolidate .mise.toml into mise.toml
- Switch lefthook and yq to aqua registry

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Skip TestKillProcess_ActualProcess when CI env var is set
- Refactor test to use testify/require
- Add test timeout to CI workflow

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Run linter on ./... instead of individual staged files to properly
resolve package symbols. The --new-from-rev flag already filters
to only report issues in changed code.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add ProcessLister and ProcessKiller interfaces for dependency injection
- Create mock implementations for safe, reliable unit tests
- Remove tests that called real system commands (ps, pkill)
- Add empty pattern validation to prevent killing all processes
- Tests no longer depend on system state or spawn real processes

The previous tests were dangerous - calling KillProcess with an empty
pattern would match all processes and kill the CI runner itself.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@newhook newhook merged commit 8287bee into main Jan 25, 2026
3 checks passed
@newhook newhook deleted the add-github-ci branch January 25, 2026 18:29
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.

2 participants