Skip to content

ci: run lint, test, and build on PRs#63

Merged
p0fi merged 7 commits into
mainfrom
ci/github-actions-workflow
Apr 23, 2026
Merged

ci: run lint, test, and build on PRs#63
p0fi merged 7 commits into
mainfrom
ci/github-actions-workflow

Conversation

@p0fi
Copy link
Copy Markdown
Owner

@p0fi p0fi commented Apr 23, 2026

Summary

  • Adds .github/workflows/ci.yml running gofmt + mise run lint, mise run test (Ubuntu + macOS, -race), and mise run build on every push to main and every PR.
  • Extends .github/dependabot.yml to also watch github-actions, so action versions stay current.
  • Paired with a repository ruleset on main that requires these checks (Lint, Test (ubuntu-latest), Test (macos-latest), Build) before merging, enforces PR flow with conversation resolution, and blocks force-push/deletion. Admins keep a bypass.

The net effect: Dependabot PRs (and human ones) must pass CI before merging.

Test plan

  • This PR itself triggers the workflow — verify all four checks pass.
  • Confirm the ruleset blocks merge until the checks are green.
  • After merge, confirm the next Dependabot PR automatically runs CI.

🤖 Generated with Claude Code

Ensures Dependabot (and human) PRs can't be merged until gofmt,
golangci-lint, `go test -race` on Ubuntu + macOS, and the build
task all succeed. Also extends Dependabot to track GitHub Actions
versions weekly.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@p0fi p0fi self-assigned this Apr 23, 2026
p0fi added 6 commits April 23, 2026 14:55
- Bump Go version to 1.26.2
- Move qrterminal/v3 and rsc.io/qr to direct dependencies
- Remove indirect-only entries for qrterminal/v3 and rsc.io/qr
Refactor to check for empty report slices before accessing elements,
ensuring proper error handling when no report data is returned.
- Delete corebtUnsubscribe and corebtCanSendWithoutResponse functions
  and
  related C helpers, as they are no longer used in the BLE transport
  layer
- Simplify platform stubs accordingly
@p0fi p0fi merged commit 65c212c into main Apr 23, 2026
4 checks passed
@p0fi p0fi deleted the ci/github-actions-workflow branch April 23, 2026 13:52
p0fi added a commit that referenced this pull request Apr 23, 2026
Ensures Dependabot (and human) PRs can't be merged until gofmt,
golangci-lint, `go test -race` on Ubuntu + macOS, and the build
task all succeed. Also extends Dependabot to track GitHub Actions
versions weekly.
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