Add support to "Test Go" workflow for alternative Codecov configuration paths #775
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.
For the sake of efficiency, the "Test Go" GitHub Actions workflow is configured to run only when relevant files are modified. Since the workflow uploads code coverage data to Codecov, the Codecov configuration file is one of these files.
The standard filename for the Codecov configuration file is
codecov.yml
, and the workflow's path filter was configured for that filename. It turns out an alternative filename is also recognized:.codecov.yml
. Two subfolders are also supported in addition to the root of the repository as locations for the configuration file.https://docs.codecov.com/docs/codecov-yaml#can-i-name-the-file-codecovyml
The workflow's paths filter was not configured for the alternative filename and locations, meaning the workflow would not be triggered on change to the Codecov configuration in projects that use the alternative configuration file name or locations.
The workflow's paths filter is hereby configured to recognize changes to any valid Codecov configuration file.