Skip to content
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

Allow coverageCommand to be a multiline script? #728

Open
takanuva15 opened this issue Jan 3, 2024 · 0 comments
Open

Allow coverageCommand to be a multiline script? #728

takanuva15 opened this issue Jan 3, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@takanuva15
Copy link

Is your feature request related to a problem? Please describe.
I tried using this action with a multiline coverage command like so:

    - name: Generate and Publish CodeClimate report
      uses: paambaati/codeclimate-action@v5.0.0
      env:
        CC_TEST_REPORTER_ID: ${{ env.CC_TEST_REPORTER_ID }}
      with:
        coverageCommand: |
          go test -cover -coverpkg=./... -coverprofile=c.out ./test/...
          cat c.out | grep -Fv "/test/" > c.tmp && mv c.tmp c.out               # remove /test/ coverage results

And it failed because I assume it's expecting only a single line.

Is there a way to allow it to accept a multiline bash script for generating the coverage report?

Describe the solution you'd like
Allow coverageCommand to be a multiline script.

Describe alternatives you've considered
Seems I have to split it into two separate steps currently since I can't do a multiline script for the coverage command

Additional context
N/A

@takanuva15 takanuva15 added the enhancement New feature or request label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants