Skip to content

Add CI/CD pipeline with GitHub Actions #73

@mauricio-leoncio

Description

@mauricio-leoncio

Motivation

A recent bug fix/config-path where configurations failed to load when installed via Homebrew was not caught before release because there were no automated checks in place. Unit tests pass locally but there is no enforcement on contributions, and deployment-level issues go unnoticed until reported by users.

Proposed Scope

A GitHub Actions workflow that runs on push and pull request events, covering at minimum:

  • Buildgo build ./...
  • Static analysisgo vet ./...
  • Testsgo test ./...
  • Format checkgofmt -l . (fail if unformatted files exist)

Nice to have (future iterations)

  • Race condition detection (go test -race ./...)
  • Integration test that builds the binary, places it in an isolated directory with configurations/, and verifies it launches successfully (simulating Homebrew install)
   # Build binary to an isolated directory
   go build -o /tmp/test-install/aws-commander .
   # Copy configurations next to it (mimics Homebrew layout)
   cp -r configurations /tmp/test-install/
   # Run from a different working directory to verify it finds configs
   cd /tmp && /tmp/test-install/aws-commander --version

Note: This requires a non-interactive verification mode (e.g., --version flag) since the TUI can't run in CI.

  • Linter integration (e.g., golangci-lint)
  • Automated release workflow (build + publish to Homebrew tap on tag)

Additional Context

  • Go version: 1.24.0 (see go.mod)
  • No existing .github/ directory or workflow files
  • The Makefile is only for LocalStack (Docker) and is not related to CI

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions