Skip to content

Add GitHub Actions CI workflow (build, vet, test) - #1

Merged
siblak merged 2 commits into
mainfrom
ci/add-github-actions
Jul 23, 2026
Merged

siblak merged 2 commits into
mainfrom
ci/add-github-actions

Conversation

@git-nostr

Copy link
Copy Markdown
Collaborator

Summary

Adds .github/workflows/ci.yaml: runs on push to main and on pull requests, executing go build ./..., go vet ./..., and go test ./.... Uses go-version-file: go.mod so the toolchain always tracks whatever this repo's go.mod declares.

Also fixes one real bug found while verifying this: wallet/service.go's RelayFee and EstimateFee both discarded the cancel function from context.WithTimeout (flagged by go vet's lostcancel check), leaking the timer until the 10s timeout fired on its own instead of releasing it when the function returned.

Part of a broader rollout adding CI to the org's Go repos that don't have any yet (mirroring what already shipped for go-flokicoin).

Test plan

  • go build ./..., go vet ./..., go test -count=1 ./... all pass cleanly (standalone module mode, matching how CI will run)
  • Confirm this workflow run goes green on GitHub Actions

RelayFee and EstimateFee discarded the cancel function returned by
context.WithTimeout (flagged by go vet's lostcancel check). Deferring
cancel releases the timer as soon as the function returns instead of
leaking it until the 10s timeout fires on its own.
Runs on push to main and on pull requests: go build ./..., go vet
./..., go test ./.... Uses go-version-file so the toolchain always
tracks go.mod instead of being hardcoded.
@git-nostr
git-nostr marked this pull request as ready for review July 23, 2026 21:24
@siblak
siblak merged commit 90c948f into main Jul 23, 2026
1 check 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