Skip to content

Commit

Permalink
Add tests for powershell.exe
Browse files Browse the repository at this point in the history
Add tests for Windows on powershell.exe, not just powershell core.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
  • Loading branch information
gabriel-samfira committed Aug 22, 2024
1 parent a4e1f75 commit 30e235d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,27 @@ concurrency:
permissions: {}

jobs:
tests:
powershell_tests:
name: Pester tests on powershell.exe
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, windows-2022]

steps:
- uses: actions/checkout@v3
- name: Install modules
shell: powershell
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module Assert -ErrorAction Stop -MaximumVersion 0.9.6 -Force
Install-Module Pester -ErrorAction Stop -Force
- name: Run tests
shell: powershell
run: |
Invoke-Pester
pwsh_tests:
name: Pester tests
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit 30e235d

Please sign in to comment.