Comments (3)
I just came across this very same issue. Because of codeclimate/test-reporter#378, this breaks all go tests outside of $GOPATH
. Since in Github Actions repos are cloned outside of the $GOPATH
by default, this renders codeclimate unusable unless workarounded.
Setting a non-empty coverageLocation
and computing the prefix does work well:
- name: Set codeclimate prefix
run: |
echo "CC_PREFIX=$(go list -m)" >> $GITHUB_ENV
- name: Test & publish code coverage
uses: paambaati/[email protected]
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
from codeclimate-action.
Seems to be working nice and smooth now, many thanks @paambaati @matthewshirley! ❤️
from codeclimate-action.
@roobre The fix provided by @matthewshirley has now landed in v2.7.5
. Can you try that and see if that fixes your issue? If it doesn't, feel free to reopen this issue.
from codeclimate-action.
Related Issues (20)
- GitHub Actions failing with: File not found: '/home/runner/work/_actions/paambaati/codeclimate-action/v3.1.0/lib/main.js' HOT 7
- Incorrect branch and sha sent to Code Climate when workflow triggered by `pull_request_target` event HOT 2
- Error when downloading action HOT 3
- TypeError: Cannot read properties of undefined (reading 'split') HOT 4
- GithubActions: couldn't load committed at from ENV, trying git.. HOT 2
- v3 fails to load HOT 4
- Clean up generated files HOT 3
- Detected dubious ownership in repository HOT 15
- Our CI has started failing just today with an unusual error HOT 4
- Support arm64 machine HOT 5
- could we add windows support? HOT 9
- Question: why do we have to use specific version instead of major tag? HOT 1
- Add "can't find this pattern" debug to getLocationLines HOT 1
- CC Reporter GPG signature verfication failed! HOT 1
- Support for node 20.x HOT 2
- Run paambaati/[email protected] Error: File not found: '/home/runner/work/_actions/paambaati/codeclimate-action/v4.0.0/lib/main.js' HOT 2
- As the v5 got released, v4 broke HOT 1
- Allow `coverageCommand` to be a multiline script?
- Update from Node.js 16 to Node.js 20 HOT 7
- Does not run on macos-14 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeclimate-action.