Skip to content

Add GitHub Actions CI for vet and unit tests - #133

Merged
stokpop merged 1 commit into
cloudfoundry:mainfrom
stokpop:add-ci-workflow
Dec 1, 2026
Merged

stokpop merged 1 commit into
cloudfoundry:mainfrom
stokpop:add-ci-workflow

Conversation

@stokpop

@stokpop stokpop commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Adds a CI workflow that runs go vet ./... and go test ./... on every push and on pull requests to main, with Go taken from go.mod. There was no CI that ran the Go tests: PR #103 merged without any checks and left three internal/php tests failing until #132 fixed them. Tested on a fork: a green run in 37 s, and a deliberately broken assertion in a second commit failed the Test step, so each pushed commit gets its own run. Not tested: the pull_request trigger and a run without network access. The slower integration tiers in the Makefile (parity and exerciser, which need Docker and network) are not part of this.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The CI workflow runs go test ./... without -race, omitting the required race-detection check and allowing data races to pass the gate.

1 open issue
What changed in this PR

Adds Go CI to catch regressions like the stale PHP test assertions introduced in #103 and fixed in #132, without running Docker-based integration tests.

Changes:

  • Runs vet and unit tests on pushes, pull requests targeting main, and manual dispatch.
  • Selects Go from go.mod.
  • Uses read-only repository permissions, a 15-minute timeout, and cancellation of superseded runs.
File Description
.github/​workflows/​ci.yml Adds the workflow for Go setup, static checks, and unit tests.

Review effort: Balanced

Comment thread .github/workflows/ci.yml Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the new Go vet and unit-test workflow.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@benjaminguttmann-avtq benjaminguttmann-avtq left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@stokpop
stokpop merged commit eb8e39c into cloudfoundry:main Dec 1, 2026
2 checks passed
@stokpop
stokpop deleted the add-ci-workflow branch December 1, 2026 07:46
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.

3 participants