Skip to content

Commit 2cbadc6

Browse files
ci: Use PSModule/Invoke-Pester action for unit tests
1 parent 67dddd8 commit 2cbadc6

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/Action-Test.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -657,19 +657,13 @@ jobs:
657657
with:
658658
persist-credentials: false
659659

660-
- name: Install dependencies
660+
- name: Install PSSemVer
661661
shell: pwsh
662662
run: |
663663
Install-PSResource -Name PSSemVer -Repository PSGallery -TrustRepository
664-
Install-PSResource -Name Pester -Repository PSGallery -TrustRepository
665664
666665
- name: Run Pester tests
667-
shell: pwsh
668-
run: |
669-
$config = New-PesterConfiguration
670-
$config.Run.Path = './tests'
671-
$config.Output.Verbosity = 'Detailed'
672-
$config.TestResult.Enabled = $true
673-
$config.TestResult.OutputPath = './tests/testResults.xml'
674-
$config.TestResult.OutputFormat = 'NUnitXml'
675-
Invoke-Pester -Configuration $config
666+
uses: PSModule/Invoke-Pester@266d1cf2532f572470b7c4463fa1072f2bfe4455 # v4.2.5
667+
with:
668+
Run_Path: ./tests
669+
Output_Verbosity: Detailed

0 commit comments

Comments
 (0)