Skip to content

Replace dead Travis CI with GitHub Actions - #21

Merged
dimchansky merged 1 commit into
masterfrom
ci/github-actions
Oct 21, 2026
Merged

dimchansky merged 1 commit into
masterfrom
ci/github-actions

Conversation

@dimchansky

Copy link
Copy Markdown
Owner

Travis CI (travis-ci.org) is gone, so the repo has had no working CI. This replaces it with GitHub Actions. Library code (*.go, go.mod) is untouched — no behaviour or performance change.

What

  • Test matrix: Go 1.19 (minimum from go.mod), oldstable, stable — the floor plus the two supported Go releases. The aliases advance automatically. Intermediate versions add no signal: there is no version-specific code.
  • Tests: go vet + go test -race -shuffle=on -count=1 with coverage.
  • Lint: golangci-lint v2.15.0 (pinned; Dependabot does not bump it, update manually). .golangci.yml mirrors the old make fmt (gofumpt + goimports local prefix). Example funcs print []byte on purpose, so QF1010 is excluded in tests.
  • Coverage: uploaded to Coveralls from the stable job; non-blocking. The existing badge is kept.
  • Supply chain: actions pinned by commit SHA; Dependabot (github-actions, weekly, grouped) keeps them fresh. It may open a PR right after merge if an action has a newer release.
  • Monthly scheduled run to catch breakage when a new Go release becomes stable. GitHub disables scheduled workflows after 60 days of repo inactivity.
  • ppc64le dropped: no GitHub-hosted runners for it, and the code has no unsafe or endian-dependent logic.
  • .travis.yml removed, README badge switched, make fmt / make lint now use golangci-lint (needs v2.15.0+ locally).

Verified locally

  • go test -race -shuffle=on passes on Go 1.27.1 (98.5% coverage) and Go 1.19.13.
  • golangci-lint v2.15.0: 0 issues, fmt --diff empty; actionlint clean.

Fixes #10
Supersedes #13

Test on Go 1.19 (go.mod minimum), oldstable and stable with -race and
-shuffle; lint with golangci-lint v2.15.0; upload coverage to Coveralls.
Actions are pinned by SHA and kept fresh by Dependabot. A monthly run
catches breakage when a new Go release becomes stable.

Fixes #10
@dimchansky
dimchansky merged commit 77982e8 into master Oct 21, 2026
4 checks passed
@dimchansky
dimchansky deleted the ci/github-actions branch October 21, 2026 16:37
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.

Tests must support newer versions of go

1 participant