Repository navigation
chore(ci): use go tools for CI - #121
Merged
Merged
Conversation
Add a minimal go.mod for the .github/tools module to declare Go 1.25 and allow Go tooling to be managed as a separate module. Update .github/dependabot.yml to include the new gomod ecosystem for the .github/tools directory and run weekly updates. This ensures Dependabot scans and updates dependencies for CI/tooling in the new tools module alongside existing GitHub Actions and repository deps.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a dedicated Go tools module to manage CI tooling dependencies deterministically. The change establishes a separate module for managing Go-based tooling independently from the main project dependencies.
- Add a minimal Go tools module in
.github/tools/go.moddeclaring Go 1.25 - Update Dependabot configuration to manage tooling dependencies in the new module with weekly updates
- Modify CI workflow to use
go tool -modfilefor running go-junit-report from the pinned tools module
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/tools/go.mod |
Creates new Go module for managing CI tooling dependencies |
.github/dependabot.yml |
Adds gomod ecosystem monitoring for the tools directory and removes specific golangci-lint grouping |
.github/workflows/code.yaml |
Updates go-junit-report execution to use the tools module via modfile flag |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
SVilgelm
force-pushed
the
chore/use-tools
branch
from
August 27, 2025 18:29
aed0a47 to
f6d5235
Compare
Update the CI workflow to invoke go-junit-report using `go tool` with an explicit `-modfile` pointing at `.github/tools/go.mod`. This ensures the report tool is resolved and executed from the pinned tools module instead of relying on a global `go install`, avoiding module resolution and versioning inconsistencies in the runner environment. Keep the test pipeline behavior the same (JSON test output -> junit.xml) but make execution deterministic and reproducible across CI runs.
Update go.mod to require Go 1.24 instead of 1.22. This brings the module in line with current development toolchains and enables use of newer language and toolchain improvements. Also preserve the retract directive noting that v0.3.0 was a mistaken tag pointing to v0.2.2, keeping the module metadata accurate.
SVilgelm
force-pushed
the
chore/use-tools
branch
from
August 27, 2025 18:30
f6d5235 to
ca0f5bb
Compare
SVilgelm
force-pushed
the
chore/use-tools
branch
3 times, most recently
from
August 27, 2025 19:02
b2fb05b to
d785417
Compare
.github/tools/go.mod to declare the golangci-lint tool and expand the indirect require block with many linting and analysis dependencies. Bump the module Go version formatting to 1.24.0 and wrap tool entries in a tool(...) block. These changes add the golangci-lint CLI to the tools module and pin a large set of analyzer plugins and helper packages so CI and local developer tooling have reproducible, versioned dependencies for static analysis and formatting. This ensures consistent linting behavior across environments and avoids transient dependency issues.
SVilgelm
force-pushed
the
chore/use-tools
branch
from
August 27, 2025 19:05
d785417 to
8e55ba9
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.
This pull request introduces a more robust and maintainable approach to managing Go-based CI tools and their dependencies. It achieves this by moving tool dependencies into a dedicated Go module under
.github/tools/, updating CI workflows to use this new module, and adjusting dependency update automation accordingly.Tool Dependency Management Improvements:
.github/tools/go.modto centrally manage all Go-based CI tool dependencies, includinggolangci-lintandgo-junit-report. This ensures consistent tool versions and easier updates.go.modto require Go 1.24, aligning with the tooling requirements.CI Workflow Enhancements:
Lintjob in.github/workflows/code.yamlto use the latest Go version (as determined by theGoVersionsjob) and to invokegolangci-lintviago tool -modfile=".github/tools/go.mod", ensuring it uses the versions specified in the new tools module.UnitTestJobto rungo-junit-reportthrough the new tools module, ensuring consistent and reproducible test reporting.Dependabot Configuration Updates:
.github/tools/as a separate group (ci-tools), ensuring CI tool dependencies are kept up to date independently from the main project dependencies.