-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (57 loc) · 1.84 KB
/
Get-CodeCoverage.yml
File metadata and controls
60 lines (57 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Get-CodeCoverage
on:
workflow_call:
inputs:
StepSummary_Mode:
type: string
description: |
Controls which sections to show in the GitHub step summary.
Use 'Full' for all sections, 'None' to disable, or a comma-separated list of 'Missed, Executed, Files'.
required: false
default: Missed, Files
CodeCoveragePercentTarget:
type: number
description: The target for code coverage.
Debug:
type: boolean
description: Enable debug output.
required: false
default: false
Verbose:
type: boolean
description: Enable verbose output.
required: false
default: false
Version:
type: string
description: Specifies the version of the GitHub module to be installed. The value must be an exact version.
required: false
default: ''
Prerelease:
type: boolean
description: Whether to use a prerelease version of the 'GitHub' module.
required: false
default: false
WorkingDirectory:
type: string
description: The working directory where the script will run from.
required: false
default: '.'
permissions:
contents: read # to checkout the repo
jobs:
Get-CodeCoverage:
name: Get-CodeCoverage
runs-on: ubuntu-latest
steps:
- name: Get-CodeCoverage
uses: PSModule/Get-PesterCodeCoverage@v1
id: Get-CodeCoverage
with:
CodeCoveragePercentTarget: ${{ inputs.CodeCoveragePercentTarget }}
StepSummary_Mode: ${{ inputs.StepSummary_Mode }}
Debug: ${{ inputs.Debug }}
Prerelease: ${{ inputs.Prerelease }}
Verbose: ${{ inputs.Verbose }}
Version: ${{ inputs.Version }}
WorkingDirectory: ${{ inputs.WorkingDirectory }}