Skip to content

ci: install gotestsum from pre-built binary#4088

Open
nogates wants to merge 1 commit into
nogates/ci-cache-go-buildfrom
nogates/ci-optimize-gotestsum
Open

ci: install gotestsum from pre-built binary#4088
nogates wants to merge 1 commit into
nogates/ci-cache-go-buildfrom
nogates/ci-optimize-gotestsum

Conversation

@nogates
Copy link
Copy Markdown
Contributor

@nogates nogates commented May 14, 2026

Summary

  • Previously every CI run compiled gotestsum from source via go install gotest.tools/gotestsum@latest (~30s+ including download and compile)
  • Now downloads the pre-built binary from GitHub releases (~2s)
  • Pins version to v1.13.0 for reproducibility (was using unpinned @latest)
  • Skips download if gotestsum is already available (supports potential future caching)

Stack

1/6 — ci: remove platform matrix (#4083)
2/6 — ci: upgrade action versions (#4084)
3/6 — ci: reduce staticcheck matrix (#4085)
4/6 — ci: extract license check (#4086)
5/6 — ci: cache Go build cache (#4087)
6/6 — this PR

Test plan

  • Verify gotestsum binary downloads and runs correctly on ubuntu-latest
  • Verify test output format is unchanged
  • Confirm the command -v check works (skips download when already present)

🤖 Generated with Claude Code

Previously, every CI run compiled gotestsum from source via
go install gotest.tools/gotestsum@latest (~30s+ including download and
compile). Switch to downloading the pre-built binary (~2s), and pin the
version for reproducibility. The check for an existing binary also
supports future caching of GOPATH/bin.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nogates nogates requested review from a team as code owners May 14, 2026 14:05
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