Skip to content

feat: Update Policy Library (automated) #668

feat: Update Policy Library (automated)

feat: Update Policy Library (automated) #668

Workflow file for this run

name: Pre-Release Tests
on:
pull_request:
branches:
- main
workflow_dispatch: {}
jobs:
release-tests:
name: Pre-Release Tests
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: Checkout Repo
id: checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 0
- name: Pester Tests
id: pester
if: startsWith(github.head_ref, 'release')
uses: azure/powershell@53dd145408794f7e80f97cfcca04155c85234709 # v2.0.0
with:
inlineScript: |
Import-Module Pester -Force
$pesterConfiguration = @{
Run = @{
Container = New-PesterContainer -Path "./.github/pester/release.tests.ps1"
PassThru = $true
}
Output = @{
Verbosity = 'Detailed'
}
}
$result = Invoke-Pester -Configuration $pesterConfiguration
exit $result.FailedCount
azPSVersion: "latest"