Skip to content

docs: fix CI badges and lint Go setup - #211

Merged
appleboy merged 2 commits into
masterfrom
docs/fix-ci-workflow-badges
Oct 31, 2026
Merged

appleboy merged 2 commits into
masterfrom
docs/fix-ci-workflow-badges

Conversation

@appleboy

@appleboy appleboy commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

The lint/test workflow was migrated to testing.yml, leaving README badges pointing to deleted workflows. Update both badge images and their destination links, including available README translations, and use the workflow's “Lint and Testing” label.

Verification

From docs/fix-ci-workflow-badges in the repository root:

  • Passed: every same-repository workflow URL in tracked README files points to an existing .github/workflows/ file.
  • Passed: gh api repos/gin-gonic/examples/actions/workflows/testing.yml returns the active workflow.
  • Passed: curl -fsSL https://github.com/gin-gonic/examples/actions/workflows/testing.yml/badge.svg returns HTTP 200 and SVG content.
  • Passed: git diff --staged --check before commit.
  • Inspect README.md: lint/test badges should display the combined workflow name and link to its Actions page. Existing branch query parameters are preserved. Browser rendering was not manually reviewed.
  • Application tests not rerun locally: documentation and CI setup only; GitHub Actions reruns the test matrix. No cleanup required.

Scope and review

Leaf documentation and CI setup correction; one reviewer recommended. No linked issue was supplied. Revert this commit to roll back.

AI authorship

AI used: OpenAI Codex. AI-authored files: README.md. Additional AI-authored file: .github/workflows/testing.yml. Human line-by-line reviewed: none yet.

CI repair

The lint runner selected cached Go 1.26.9, but go.tools.mod requires Go 1.26.10. Set check-latest: true for the lint matrix so setup-go resolves the latest patch release. actionlint .github/workflows/testing.yml and git diff --check passed locally; the full CI suite is rerunning.

@appleboy appleboy changed the title docs: fix CI workflow badges docs: fix CI badges and lint Go setup Oct 31, 2026
@appleboy
appleboy merged commit 4dcc702 into master Oct 31, 2026
10 checks passed
@appleboy
appleboy deleted the docs/fix-ci-workflow-badges branch October 31, 2026 05:23
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