-
Notifications
You must be signed in to change notification settings - Fork 18
59 lines (50 loc) · 1.41 KB
/
win-linux-mac-ci.yml
File metadata and controls
59 lines (50 loc) · 1.41 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Run Pester Tests
on:
pull_request:
branches:
- main
- release/**
push:
branches:
- main
- release/**
jobs:
test:
name: Run Pester Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: Install Pester
shell: pwsh
run: |
Write-Verbose -Verbose "Installing Pester 4.x"
Install-Module -Name Pester -MaximumVersion 4.99 -Force -Scope CurrentUser -SkipPublisherCheck
Import-Module Pester -MaximumVersion 4.99 -Force
- name: Build Module
shell: pwsh
run: |
./build.ps1 -Build -Clean -BuildConfiguration Release
- name: Run Pester Tests
shell: pwsh
run: |
Invoke-Pester -Path './test' -OutputFile 'testResults.xml' -OutputFormat NUnitXml -EnableExit
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}
path: testResults.xml
- name: Publish Test Results
if: always()
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: testResults.xml