Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Allow coverageCommand to be a multiline script? #728

@takanuva15

Description

@takanuva15

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions