Code Monkey home page Code Monkey logo

Comments (3)

roobre avatar roobre commented on August 24, 2024 4

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.

roobre avatar roobre commented on August 24, 2024 1

Seems to be working nice and smooth now, many thanks @paambaati @matthewshirley! ❤️

from codeclimate-action.

paambaati avatar paambaati commented on August 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.