Skip to content

Commit 71516aa

Browse files
Add CodeCoveragePercentTarget input and update related configurations in action.yml and README.md
1 parent 77488b7 commit 71516aa

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ jobs:
9595

9696
| Name | Description | Required | Default |
9797
| ---- | ----------- | -------- | ------- |
98-
| `Settings` | The type of tests to run. Can be either `Module` or `SourceCode`. | `true` | |
9998
| `Name` | The name of the module to test. The name of the repository is used if not specified. | `false` | |
99+
| `Settings` | The type of tests to run. Can be either `Module` or `SourceCode`. | `true` | |
100+
| `CodeCoveragePercentTarget` | The target code coverage percentage. | `false` | `'0'` |
100101
| `Debug` | Enable debug output. | `false` | `'false'` |
101102
| `Verbose` | Enable verbose output. | `false` | `'false'` |
102103
| `Version` | Specifies the version of the GitHub module to be installed. The value must be an exact version. | `false` | |

action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ inputs:
1212
Settings:
1313
description: The type of tests to run. Can be either 'Module' or 'SourceCode'.
1414
required: true
15+
CodeCoveragePercentTarget:
16+
description: The target code coverage percentage. This is used to determine if the code coverage meets the specified threshold.
17+
required: false
18+
default: '0'
1519
Debug:
1620
description: Enable debug output.
1721
required: false
@@ -111,8 +115,7 @@ runs:
111115
Verbose: ${{ inputs.Verbose }}
112116
Version: ${{ inputs.Version }}
113117
WorkingDirectory: ${{ inputs.WorkingDirectory }}
114-
TestResult_Enabled: true
115118
TestResult_TestSuiteName: ${{ inputs.Settings }}-${{ runner.os }}
116-
CodeCoverage_CoveragePercentTarget: 0
119+
CodeCoverage_CoveragePercentTarget: ${{ inputs.CodeCoveragePercentTarget }}
117120
Path: ${{ steps.paths.outputs.TestPath }}
118121
Run_Path: ${{ steps.paths.outputs.CodePath }}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
@{
2-
Output = @{
2+
TestResult = @{
3+
Enabled = $true
4+
}
5+
Output = @{
36
Verbosity = 'Detailed'
47
}
58
}

0 commit comments

Comments
 (0)