Skip to content

Feature: Add CI Workflow for Build/Test/Lint #42

@Jaydeep869

Description

@Jaydeep869

Description

Add a CI workflow so pull requests are automatically validated with build, test, and lint checks.

Motivation

Without CI, simple regressions (formatting, lint, compile errors, missing resource cleanup) can land undetected. Automated checks improve code quality and review confidence.

Proposed Solution

Create .github/workflows/ci.yml that:

  • Uses actions/setup-go.
  • Runs go build ./....
  • Runs go test ./....
  • Runs golangci-lint.
  • Triggers on pull requests and pushes to the default branch.

Alternatives Considered

  • Only run tests and build (no lint): faster, but lower static quality checks.
  • Local only checks via contributor machines: inconsistent and easy to skip.

Additional Context

  • Area: .github/workflows/ (new directory) and .github/workflows/ci.yml (new file)
  • This directly helps catch issues like deferred close omissions and style/format defects earlier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions