-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefix parameter not passed to test-reporter if coverageLocations is empty #265
Comments
I just came across this very same issue. Because of codeclimate/test-reporter#378, this breaks all go tests outside of Setting a non-empty - name: Set codeclimate prefix
run: |
echo "CC_PREFIX=$(go list -m)" >> $GITHUB_ENV
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v2.7.4
env:
CC_TEST_REPORTER_ID: redacted
with:
coverageCommand: go test -coverprofile=c.out ./...
coverageLocations: "${{ github.workspace }}/c.out:gocov" # Should be the default, but workarounds this issue
prefix: ${{ env.CC_PREFIX }} # Makes reporter work with modern gocov reports |
@roobre The fix provided by @matthewshirley has now landed in |
Seems to be working nice and smooth now, many thanks @paambaati @matthewshirley! ❤️ |
* ci: report coverage to codeclimate * ci: codeclimate: remove debug flag * ci: add codeclimate config file * ci/codeclimate: removed coverageLocations workaround paambaati/codeclimate-action#265 was fixed upstream
Describe the bug
I have set the test reporter to upload without specifying the coverageLocations parameter. In this scenario, the prefix is never added to the after-build call.
Version of
codeclimate-action
you're usingv2.5.7
Example links
CI Step
Environment
Debug
Expected behavior
The prefix to be added to the after-build call.
The text was updated successfully, but these errors were encountered: