feat: Improve Go integrations#8
Open
jonathanio wants to merge 2 commits into
Open
Conversation
Improve the integrations through both Taskfiles and GitHub Workflows, such as using tparse via the go:test task to improve layout and summarisation of the tests in local developing, as well as build test reports for tests via GitHub Workflows. Also extend the coverage processing to create and upload test reports to Codecov.
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
e395a1e to
6f01394
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s Go integration workflows and GoReleaser configuration to improve build/release automation (including container image signing/SBOM-related steps) and streamlines local Task task naming.
Changes:
- Refactors Task task names (dropping the
utils:prefix) and removes the GoReleaser “healthcheck” task dependency. - Expands
.goreleaser.yamlwith snapshot/source/SBOM/signing/docker release configuration and adds a new scratch-basedDockerfile. - Updates GitHub Actions workflows for Go integrations and coverage reporting (including Cosign installation).
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
Taskfile.yaml |
Updates develop task dependencies to renamed tasks. |
.task/utils.yaml |
Renames utility tasks and keeps pre-check / pre-commit wiring. |
.task/go.yaml |
Removes the go:healthcheck task and its dependency from builds. |
internal/apply/apply.go |
Adjusts per-file processing logs and adds lint suppression for function length. |
Dockerfile |
Adds a scratch image Dockerfile intended for GoReleaser multi-platform builds. |
.goreleaser.yaml |
Major GoReleaser configuration changes: snapshot/source archives, checksums, SBOMs, signing, docker image publishing. |
.github/workflows/go-integrations.yaml |
Updates GoReleaser invocation and installs Cosign in CI. |
.github/workflows/coverage.yaml |
Adjusts Codecov upload ordering and adds additional (duplicated) test-results steps. |
Comments suppressed due to low confidence (1)
.github/workflows/coverage.yaml:112
- This second "Process test results" step will fail because
tests.jsonwas already removed by the earlier step (line 94). It also duplicates the upload logic (you already upload test results viacodecov/test-results-action). Please remove the duplicated block or keep only one upload mechanism.
| version: v2.15.4 | ||
| args: >- | ||
| release | ||
| --clean |
Improve the GoReleaser processes including support for building container images, better selection of steps to run during local and continuous integrations, and some initial attempts at signing and attestations.
6f01394 to
22b4a67
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve the Go integrations and the GoReleaser processes to try and improve testing and building.
Checklist
Please check and confirm the following items have been performed, where
possible, for this Pull Request:
type/...,changes/..., and 'release/...' labels, as needed.