ci: consolidate GitHub Actions workflows into a single file#28
Conversation
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]>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR addresses the issue by consolidating multiple GitHub Actions workflow files into a single, unified
ci.ymlfile, based on the provided technical blog post ("The Ultimate Single GitHub Actions CI/CD File").Changes
.github/workflows/ci.yml: Implements a robust event routing and state-machine pattern to handlepush,pull_request,workflow_dispatch,release, andscheduletriggers intelligently.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..github/workflows/fmt.yml,.github/workflows/golangci-lint.yml,.github/workflows/release.yml,.github/workflows/test.yml, and.github/workflows/vet.yml.CI Statusbadge.actions/checkout@v4,actions/setup-go@v5,golangci/golangci-lint-action@v6), fixing potential bash injection vulnerabilities by moving inputs to theenvblock, and correcting dependencies that would have brokengoreleaser.PR created automatically by Jules for task 8062575933803191066 started by @arran4