Bump actions/upload-artifact from 4.5.0 to 4.6.0 (#45) #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pester | |
on: push | |
permissions: | |
contents: read | |
jobs: | |
pester-tests: | |
name: Pester tests | |
runs-on: windows-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 | |
with: | |
egress-policy: audit | |
- name: Check out repository code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Perform all Pester tests from the SBOMResearcher tests directory | |
shell: pwsh | |
run: | | |
Set-PSRepository psgallery -InstallationPolicy trusted | |
Install-Module -Name Pester -Confirm:$false -RequiredVersion 5.6.1 -Force | |
. .\SBOMResearcher.ps1 | |
Invoke-Pester -Script .\tests -OutputFile "./Pester.XML" -OutputFormat "NUnitXML" -Passthru -Verbose | |
- name: Upload test results | |
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
with: | |
name: Pester-Version-Tests | |
path: Pester.XML | |
if: ${{ always() }} |