-
Notifications
You must be signed in to change notification settings - Fork 63
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
CodeClimate Report for Go doesn't work #109
Comments
This also hit me. Key is to make the Until this is resolved, I'm working around it:
|
@toshimaru @ccremer I've created a PR (#111) that attempts to include support for a custom prefix. Can you try it out? You'll have to modify your action YAML to use —
|
Hi, thanks for getting into this! Unfortunately it fails with Error:
|
@ccremer Sorry, but can you try again? I just pushed a new release. steps:
- name: Test & publish code coverage
uses: paambaati/[email protected] |
It worked! 👍 @paambaati Thanks for you quick work :) |
@paambaati I put some captures on the PR, diff-coverage and total-coverage have not been reported properly. |
@toshimaru Thanks, can you show me reports/logs? I'm still trying to understand how exactly the reporter itself works (note that this action is only a small wrapper for the reporter). |
this is whole log: https://github.com/toshimaru/nyan/runs/468939395
image |
@toshimaru Why is the prefix empty? For Go it's needed to give the prefix that is named the same as the directory (I think, or is it the Go module 🤔 ) |
@toshimaru I've pushed a fix for this. Can you try |
@ccremer @paambaati I re-use v2.5.0 and add prefix, it works: |
@toshimaru So I looked at your workflow YAML, and you’re using your project’s Github URL as the From https://docs.codeclimate.com/docs/configuring-test-coverage —
|
This is not working for me either : https://github.com/dreamvo/gilfoyle/runs/1400610928
config: - name: Test
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TOKEN }}
with:
debug: true
coverageCommand: go test -race -coverprofile=c.out -covermode=atomic -v -bench=. ./...
prefix: ${{ github.event.repository.name }}
coverageLocations: |
${{github.workspace}}/c.out:gocov Any advice ? Thanks |
I figured out more. The code climate reporter really depends on what is configured in go.mod.
doesn't work with - name: Test & Publish Code Coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ...
with:
coverageCommand: make test
prefix: ${{ github.event.repository.name }}
coverageLocations:
"${{github.workspace}}/cover.out:gocov" The problematic line is
and combine with |
https://github.com/denbon05/fastify-lcache/runs/7219367431?check_suite_focus=true |
@denbon05 were you able to figure it out, ran into a similar issue |
@TatisLois I think I figured it out. People who makes pull-request don't have CC_TEST_REPORTER_ID in secretes so I added in my yml file into .github/workflows/ condition if github.event_name != 'pull_request'. Thanks for your response. |
If you set prefix to the entirety of what is in go.mod it seems to work. |
Error
Actions Result URL: https://github.com/toshimaru/nyan/runs/459063904
My Setting
Other information
cc-test-reporter
on TravisCI works with the following setting.The text was updated successfully, but these errors were encountered: