Skip to content

Commit 95b1a23

Browse files
authored
feat: add files option (#185)
1 parent 12d23cc commit 95b1a23

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The action's step needs to run after your test suite has outputted an LCOV file.
1616
| --------------------- | ----------- | ----------- |
1717
| `github-token` | _required_ | Default if not specified: `${{ github.token }}`. Can be also specified this way: `github-token: ${{ secrets.GITHUB_TOKEN }}`; Coveralls uses this token to verify the appropriate repo at Coveralls and send any new status updates based on your coverage results. This variable is built into Github Actions, so __do not add it to your secrets store__. [More Info](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token)|
1818
| `file` | _optional_ | Default: all coverage files that could be found. Local path to the coverage report file produced by your test suite. An error will be thrown if no file was found. This is the file that will be sent to the Coveralls API. Leave empty if you want to combine many files reports. |
19+
| `files` | _optional_ | Default: all coverage files that could be found. Space-separated list of coverage report files produced by your test suite. Example: `files: coverage/test1.lcov coverage/test2.lcov` |
1920
| `format` | _optional_ | Force coverage report file format. If not specified, coveralls will try to detect the format based on file extension and/or content. Possible values: `lcov`, `simplecov`, `cobertura`, `jacoco`, `gcov`, `golang`, `python`. See also [actual supported coverage report formats list](https://github.com/coverallsapp/coverage-reporter#supported-coverage-report-formats). |
2021
| `flag-name` | _optional (unique required if parallel)_ | Job flag name, e.g. "Unit", "Functional", or "Integration". Will be shown in the Coveralls UI. |
2122
| `parallel` | _optional_ | Set to true for parallel (or matrix) based steps, where multiple posts to Coveralls will be performed in the check. `flag-name` needs to be set and unique, e.g. `flag-name: run ${{ join(matrix.*, ' - ') }}` |

action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ inputs:
1313
file:
1414
description: 'Coverage file'
1515
required: false
16+
files:
17+
description: 'Space-separated list of coverage files'
18+
required: false
1619
format:
1720
description: 'Force coverage format, supported formats: lcov, simplecov, cobertura, jacoco, gcov, golang, python'
1821
required: false
@@ -135,6 +138,7 @@ runs:
135138
${{ inputs.base-path && format('--base-path {0}', inputs.base-path) || '' }}
136139
${{ inputs.format && format('--format {0}', inputs.format) || '' }}
137140
${{ inputs.file || inputs.path-to-lcov }}
141+
${{ inputs.files }}
138142
env:
139143
COVERALLS_DEBUG: ${{ inputs.debug }}
140144
COVERALLS_CARRYFORWARD_FLAGS: ${{ inputs.carryforward }}

0 commit comments

Comments
 (0)