-
-
Notifications
You must be signed in to change notification settings - Fork 189
32 lines (32 loc) · 1.01 KB
/
pester.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Pester Tests
on:
push:
branches: [ main ]
jobs:
Test-DesktopEdition:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Run Pester tests
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module Microsoft.PowerShell.SecretManagement
Import-Module Pester -MinimumVersion 5.2
$cfg = [PesterConfiguration]@{Run=@{Exit=$true}}
Invoke-Pester -Configuration $cfg
shell: powershell
Test-CoreEdition:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Run Pester tests
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module Microsoft.PowerShell.SecretManagement
Import-Module Pester -MinimumVersion 5.2
$cfg = [PesterConfiguration]@{Run=@{Exit=$true}}
Invoke-Pester -Configuration $cfg
shell: pwsh