Skip to content

ci: add test workflow - #12

Open
maoueh wants to merge 1 commit into
developfrom
feature/add-test-ci
Open

ci: add test workflow#12
maoueh wants to merge 1 commit into
developfrom
feature/add-test-ci

Conversation

@maoueh

@maoueh maoueh commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary

The repository has test configured as a required status check on the protected branches, but no workflow was producing it. This adds one.

The new .github/workflows/test.yml runs on pull requests and on pushes to develop/main:

  • go build ./...
  • go test -race ./...

The Go toolchain version comes from go.mod (go-version-file), with check-latest: true so the newest patch release of that minor version is used.

Notes

  • The job id is intentionally test (no matrix), since the required status check context is matched by job name. Introducing a matrix would rename the contexts to test (…) and break the protection rule.
  • Concurrency group cancels superseded runs on the same branch.

Test plan

  • go build ./... — passes locally
  • go test -race ./... — passes locally (root package and zapx)

Adds a GitHub Actions workflow running go build and go test -race on
pull requests and pushes to develop/main. The job id is `test` to
match the required status check already configured on the protected
branches.
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.

1 participant