Skip to content

Commit ecf42e4

Browse files
authored
Merge pull request #22 from Reloaded-Project/add-packages-input
Add packages input parameter
2 parents 72dd48a + 50fdf72 commit ecf42e4

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

README.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ These parameters are only used when `run-tests-and-coverage` is enabled and are
138138
| `additional-tarpaulin-args` | No | `''` | Additional arguments passed directly to the cargo tarpaulin command. |
139139
| `codecov-flags` | No | `'unittests'` | Flags to pass to Codecov for organizing coverage reports. |
140140
| `codecov-name` | No | `'codecov-umbrella'` | Custom defined name for the coverage upload. |
141+
| `packages` | No | `''` | Multi-line list of package names to test (one per line). If empty, tests all packages in workspace. |
142+
143+
**Note:** The `packages` parameter is passed through to the test action and does not affect which binary is built.
141144

142145
**Note:** The following parameters are used by both this action AND passed through to the test action: `target`, `features`, `no-default-features`, `use-cross`.
143146

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ inputs:
165165
description: "Additional arguments to pass to the cargo tarpaulin command"
166166
required: false
167167
default: ""
168+
packages:
169+
description: "Packages to test (multi-line list). Passed through to devops-rust-test-and-coverage. Selects packages for testing; does not influence the build."
170+
required: false
171+
default: ""
168172
codecov-flags:
169173
description: "Flags to pass to Codecov for organizing coverage reports"
170174
required: false
@@ -555,3 +559,4 @@ runs:
555559
codecov-flags: ${{ inputs.codecov-flags }}
556560
codecov-name: ${{ inputs.codecov-name }}
557561
additional-tarpaulin-args: ${{ inputs.additional-tarpaulin-args }}
562+
packages: ${{ inputs.packages }}

0 commit comments

Comments
 (0)