Skip to content

Bump github/codeql-action from 3.28.0 to 3.28.1 (#47) #134

Bump github/codeql-action from 3.28.0 to 3.28.1 (#47)

Bump github/codeql-action from 3.28.0 to 3.28.1 (#47) #134

Workflow file for this run

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@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
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@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: Pester-Version-Tests
path: Pester.XML
if: ${{ always() }}