Skip to content

Can't use sum-coverage #2

Closed
Closed
@krasnoukhov

Description

@krasnoukhov

Here's how to reproduce:

- uses: aktions/codeclimate-test-reporter@v1
  with:
    codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
    command: sum-coverage -p 2 coverage/codeclimate.*.json

Here's the output:

> Run aktions/codeclimate-test-reporter@v1
chmod +x /home/runner/work/_temp/cc-test-reporter
cc-test-reporter sum-coverage -p 2 coverage/codeclimate.*.json
Error: open ./coverage/codeclimate.*.json: no such file or directory
Usage:
  cc-test-reporter sum-coverage [flags]

Flags:
  -o, --output string   output path (default "coverage/codeclimate.json")
  -p, --parts int       total number of parts to sum

Global Flags:
  -d, --debug   run in debug mode

##[error]The process 'cc-test-reporter' failed with exit code 255
##[error]Node run failed with exit code 1

I guess this happens because of the way how arguments are passed into shell exec. I'm working this around:

- env:
    CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
  run: cc-test-reporter sum-coverage -p 2 coverage/codeclimate.*.json

But this is ugly because I need to make sure to run some dummy action before so CLI tool is installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions