Skip to content

ci: consolidate GitHub Actions workflows into a single file#28

Merged
arran4 merged 1 commit into
mainfrom
jules-github-actions-single-file-8062575933803191066
May 31, 2026
Merged

ci: consolidate GitHub Actions workflows into a single file#28
arran4 merged 1 commit into
mainfrom
jules-github-actions-single-file-8062575933803191066

Conversation

@arran4

@arran4 arran4 commented May 30, 2026

Copy link
Copy Markdown
Owner

This PR addresses the issue by consolidating multiple GitHub Actions workflow files into a single, unified ci.yml file, based on the provided technical blog post ("The Ultimate Single GitHub Actions CI/CD File").

Changes

  • Created .github/workflows/ci.yml: Implements a robust event routing and state-machine pattern to handle push, pull_request, workflow_dispatch, release, and schedule triggers intelligently.
  • Integrated Jobs: Merged the functionality of linting (golangci), testing (go-test), vetting (go-vet), auto-formatting (go-fmt-pr, autofix), and releasing (goreleaser, manual-gh-release) into distinct, dependent stages within the new unified file.
  • Cleaned up redundancy: Deleted .github/workflows/fmt.yml, .github/workflows/golangci-lint.yml, .github/workflows/release.yml, .github/workflows/test.yml, and .github/workflows/vet.yml.
  • Updated README.md: Replaced the separate CI badges with a single CI Status badge.
  • Security & Correctness Fixes: Addressed code review feedback by using correct action versions (actions/checkout@v4, actions/setup-go@v5, golangci/golangci-lint-action@v6), fixing potential bash injection vulnerabilities by moving inputs to the env block, and correcting dependencies that would have broken goreleaser.

PR created automatically by Jules for task 8062575933803191066 started by @arran4

Replaces fragmented workflow files (fmt.yml, golangci-lint.yml,
release.yml, test.yml, vet.yml) with a unified `ci.yml`.
This implements event routing, deduplication, auto-formatting PRs,
and tags-based releases following best practices.
Updated README.md to point to the new single CI status badge.

Co-authored-by: arran4 <[email protected]>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the README.md file by consolidating multiple workflow status badges (Test, Vet, Lint, and Fmt) into a single CI Status badge. There are no review comments, and I have no additional feedback to provide.

@arran4 arran4 merged commit ddb2fb1 into main May 31, 2026
9 checks passed
@arran4 arran4 deleted the jules-github-actions-single-file-8062575933803191066 branch May 31, 2026 00:19
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