Skip to content
Merged
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
27 changes: 24 additions & 3 deletions .github/workflows/ModuleCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,33 @@ jobs:
with:
name: Unit Test Results (OS ${{ matrix.os }})
path: ./tests/out/testResults.xml
test_powershell:
name: Run Tests (Windows PowerShell 5.1)
# Windows PowerShell 5.1 (Desktop) is not a runner OS, so it is run as a
# separate job using the built-in `powershell` shell on windows-latest.
# Modules that declare Windows PowerShell (Desktop) support must build and
# test cleanly on the lowest supported engine, not just PowerShell 7+.
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Test
shell: powershell
run: ./build.ps1 -Task Test -Bootstrap
- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: Unit Test Results (Windows PowerShell 5.1)
path: ./tests/out/testResults.xml
publish-test-results:
name: "Publish Unit Tests Results"
needs: test
needs:
- test
- test_powershell
runs-on: ubuntu-latest
# the test job might be skipped, we don't need to run this job then
if: success() || failure()
# Publish whenever the test jobs ran (pass or fail); only skip if the
# workflow itself was cancelled.
if: ${{ !cancelled() }}
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
Expand Down