Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,37 @@ jobs:
$config.run.throw = $true
$config.output.Verbosity = 'Detailed'
$config.TestResult.Enabled = $true
$config.TestResult.OutputFormat = 'NUnitXml'
$config.TestResult.OutputPath = 'Artifacts/testResults.xml'
Invoke-Pester -Configuration $config
if (-not (Test-Path 'Artifacts/testResults.xml')) {
throw "Test results file not found at Artifacts/testResults.xml"
}
- name: 🧪 Test Windows PowerShell
if: runner.os == 'Windows'
run: |
powershell -c {
$mfModulePath = Join-Path $env:LOCALAPPDATA 'PowerShell\Modules'
$env:PSModulePath = "$mfModulePath;$env:PSModulePath"
$config = New-PesterConfiguration
$config.run.throw = $true
$config.output.Verbosity = 'Detailed'
$config.TestResult.Enabled = $true
$config.TestResult.OutputPath = 'Artifacts/testResults-winps.xml'
Invoke-Pester -Configuration $config
}
# - name: 📈 Report Test Results
# uses: dorny/test-reporter@v2
# if: ${{ !cancelled() }}
# with:
# name: Pester Tests
# path: testResults.xml
# path: Artifacts/testResults.xml
# reporter: dotnet-nunit
# - name: 📈 Report Windows PowerShell Test Results
# uses: dorny/test-reporter@v2
# if: ${{ runner.os == 'Windows' && !cancelled() }}
# with:
# name: Pester Tests (Windows PowerShell)
# path: Artifacts/testResults-winps.xml
# reporter: dotnet-nunit
- name: 📤 Upload Module Zip
uses: actions/upload-artifact@v7
Expand Down
2 changes: 1 addition & 1 deletion ExcelFast.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,4 @@ Task Pester-WinPS {

Task CompileAll CompilePS7, CompilePS51
Task Test Pester, Pester-WinPS
Task . Clean, Build, Test
Task . Clean, Build
Loading