Repository navigation
Add GitHub Actions CI for vet and unit tests - #133
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds a CI workflow that runs
go vet ./...andgo test ./...on every push and on pull requests tomain, with Go taken fromgo.mod. There was no CI that ran the Go tests: PR #103 merged without any checks and left threeinternal/phptests 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 theTeststep, so each pushed commit gets its own run. Not tested: thepull_requesttrigger and a run without network access. The slower integration tiers in theMakefile(parity and exerciser, which need Docker and network) are not part of this.