Skip to content

Run go vet and the test suite in CI - #2

Merged
vpetersson merged 1 commit into
masterfrom
ci/run-tests
Nov 10, 2026
Merged

vpetersson merged 1 commit into
masterfrom
ci/run-tests

Conversation

@vpetersson-bot

Copy link
Copy Markdown
Collaborator

What

This adds a Test workflow that runs go vet ./... and go test -race -count=1 ./... on every push to master and every pull request. It runs on:

  • Go 1.18, the version go.mod declares
  • current stable

fail-fast is off so that both results are reported. Permissions are contents: read, and checkout doesn't keep credentials. The actions are pinned by SHA to the same versions sbomify/sbom-tools uses, and a new .github/dependabot.yml keeps those pins current.

Why

This fork exists to carry a security fix (#1, GO-2026-6905), and sbomify/sbom-tools builds syft against it. Until now nothing ran its tests, so a future change could break the reader or reopen the bug without anyone noticing.

Verification

  • go vet ./... and go test -count=1 ./... pass locally with go1.18.10 and go1.27.3 on master plus this branch.
  • Both YAML files parse.
  • This PR triggers the workflow itself, so its checks are the first run.

🤖 Generated with Claude Code

Add a Test workflow that runs go vet and go test -race on every push to
master and every pull request, against Go 1.18 (the version go.mod
declares) and current stable. Actions are pinned by SHA, and a
Dependabot config keeps the pins current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
@vpetersson
vpetersson merged commit cac91ea into master Nov 10, 2026
2 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.

2 participants