codecov-bash
codecov-bash copied to clipboard
In case of multiple files as arguments, only first file is getting selected. Getting file not found for second file
This issue was first reported here.
It still exists in v2.0.2. See log here. Excerpt from log follows:
Warning: Unexpected input(s) 'path_to_write_report', valid inputs are ['token', 'files', 'directory', 'flags', 'commit_parent', 'dry_run', 'env_vars', 'fail_ci_if_error', 'file', 'functionalities', 'move_coverage_to_trash', 'name', 'override_branch', 'override_build', 'override_commit', 'override_pr', 'override_tag', 'root_dir', 'slug', 'url', 'verbose', 'working-directory']
Run codecov/codecov-action@v2
with:
files: ./coverage/coverage-final.json, ./coverage/jest/coverage-final.json
fail_ci_if_error: true
path_to_write_report: ./coverage/codecov_report.txt
verbose: true
env:
CI: 1
CYPRESS_CACHE_FOLDER: /home/runner/.cache/Cypress
npm_config_cache: /home/runner/.npm
TERM: xterm
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (6434e7d376f412405ba0fc0d2cf6f085312b16160fc5b7972a9008caae1ea9ff codecov)
/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov -n -Q github-action-2.0.2 -Z -f ./coverage/coverage-final.json -f ./coverage/jest/coverage-final.json -C c4b76eb13e70da8f5779448a9418932cc0561345 -v
[2021-08-13T16:45:18.482Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.1.0
[2021-08-13T16:45:18.488Z] ['info'] => Project root located at: /home/runner/work/ambianic-ui/ambianic-ui
[2021-08-13T16:45:18.492Z] ['info'] -> No token specified or token is empty
[2021-08-13T16:45:18.492Z] ['verbose'] Start of network processing...
[2021-08-13T16:45:18.492Z] ['verbose'] Searching for files in /home/runner/work/ambianic-ui/ambianic-ui
[2021-08-13T16:45:18.805Z] ['info'] Searching for coverage files...
[2021-08-13T16:45:18.816Z] ['info'] => Found 1 possible coverage files:
./coverage/coverage-final.json
Same error here, I solved this problem removing the blank space between files
- files: ./core/build/reports/kover/project-xml/report.xml, ./app/build/reports/kover/project-xml/report.xml
+ files: ./core/build/reports/kover/project-xml/report.xml,./app/build/reports/kover/project-xml/report.xml
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.2.5
[2022-08-06T15:42:10.704Z] ['info'] => Project root located at: /home/runner/work/pomodoro-timer/pomodoro-timer
[2022-08-06T15:42:10.706Z] ['info'] -> No token specified or token is empty
[2022-08-06T15:42:10.717Z] ['info'] Searching for coverage files...
[2022-08-06T15:42:10.939Z] ['info'] => Found 2 possible coverage files:
./core/build/reports/kover/project-xml/report.xml
./app/build/reports/kover/project-xml/report.xml
[2022-08-06T15:42:10.939Z] ['info'] Processing ./core/build/reports/kover/project-xml/report.xml...
[2022-08-06T15:42:10.941Z] ['info'] Processing ./app/build/reports/kover/project-xml/report.xml...