Run PowerShell Tests #485
Workflow file for this run
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: Run PowerShell Tests | |
on: | |
# Run tests on each commit, newly opened/reopened PR, and | |
# PR review submission (e.g. approval) | |
workflow_dispatch: | |
push: | |
paths: | |
- "**.ps1" | |
- "**.psm1" | |
pull_request: | |
types: [opened, reopened] | |
branches: | |
- "main" | |
paths: | |
- "**.ps1" | |
- "**.psm1" | |
pull_request_review: | |
types: [submitted] | |
jobs: | |
Run-PowerShell-Tests: | |
runs-on: windows-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Run Pester Tests | |
shell: powershell | |
run: | | |
./SetUp.ps1 | |
Invoke-Pester -Output 'Detailed' -Path './Testing/Unit/PowerShell' |