Commit Graph

4 Commits

Author SHA1 Message Date
Hongming Wang
2539d007e5 chore(ci): add auto-promote-staging workflow 2026-04-24 07:44:02 -07:00
d263a30f84 fix(ci): narrow test/vet job to ./cmd/molecule/... package
The repo has no Go files at the root — go test ./... and go vet ./...
fail with "no Go files in ." in CI. Narrow the test job to the only
package with tests, and vet to the scoped package dirs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 10:34:04 +00:00
47b2804516 test(cli): add integration tests and fix CI workflow
- Add 24 integration tests in cmd/molecule/molecule_test.go covering
  all 18 subcommands (workspace, agent, platform, config) including
  error paths for not-found and missing-arg cases
- Tests use httptest mock server; binary built per-test with correct
  repo root for go build ./cmd/molecule
- Fix release.yml: correct binary name (molecule not molecli), correct
  package path (./cmd/molecule not ./cmd/molecli)
- Add test job (go mod tidy + vet + test) to release.yml, runs on
  every PR touching Go files
- Release job gated on test job; conditional on v* tag push
- Mark KI-005 resolved in known-issues.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 10:12:28 +00:00
Hongming Wang
653a531eab ci: add Go binary release workflow (tag v* → GitHub Releases) 2026-04-16 03:50:28 -07:00