Skip to content

ci: add fmt/build checks and keep test/race workflow#2

Merged
cpunion merged 1 commit into
xgo-dev:mainfrom
cpunion:chore/add-go-ci-build-fmt
Feb 11, 2026
Merged

ci: add fmt/build checks and keep test/race workflow#2
cpunion merged 1 commit into
xgo-dev:mainfrom
cpunion:chore/add-go-ci-build-fmt

Conversation

@cpunion
Copy link
Copy Markdown
Collaborator

@cpunion cpunion commented Feb 11, 2026

Summary

This PR improves GitHub Actions CI coverage for github.com/goplus/plan9asm by adding dedicated checks and keeping the existing test coverage.

Added jobs

  • fmt: verifies formatting with gofmt -l .
  • build: verifies package build with go build ./...
  • race: runs go test -race ./... on Go 1.22.x

Existing test coverage retained

  • test matrix on Go 1.21.x and 1.22.x
  • go test ./... for each matrix entry

Workflow hardening / performance

  • explicit minimal workflow permission:
    • permissions: contents: read
  • actions/setup-go caching enabled
  • fail-fast: false kept for matrix visibility when one version fails

Why

  • Catch formatting and compile regressions earlier
  • Keep runtime race detection as a separate signal
  • Maintain compatibility checks across supported Go versions

Verification (local)

gofmt -l .
go build ./...
go test ./... -count=1
go test -race ./... -count=1

@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@cpunion cpunion merged commit 19d8967 into xgo-dev:main Feb 11, 2026
5 checks passed
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