File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424jobs :
2525 test :
2626 name : Run Pester Tests
27- runs-on : windows-latest
28- strategy :
29- matrix :
30- pwsh-version : ["7.2", "7.3", "7.4"]
27+ runs-on : [self-hosted, linux]
3128 steps :
3229 - name : Checkout Repository
3330 uses : actions/checkout@v4
3431
35- - name : Setup PowerShell ${{ matrix.pwsh-version }}
32+ - name : Install PowerShell Core
3633 run : |
37- choco install powershell-core --version=${{ matrix.pwsh-version }} -y
34+ if ! command -v pwsh &> /dev/null; then
35+ sudo apt-get update
36+ sudo apt-get install -y powershell
37+ fi
3838
3939 - name : Verify PowerShell Version
4040 shell : pwsh
@@ -82,16 +82,16 @@ jobs:
8282 if : always()
8383 uses : actions/upload-artifact@v4
8484 with :
85- name : pester-test-results-${{ matrix.pwsh-version }}
85+ name : pester-test-results
8686 path : test-results.xml
8787 retention-days : 30
8888
8989 - name : Publish Test Report
9090 if : always()
91- uses : EnricoMi/publish-unit-test-result-action/windows @v2
91+ uses : EnricoMi/publish-unit-test-result-action/linux @v2
9292 with :
9393 files : test-results.xml
94- check_name : Test Results (PowerShell ${{ matrix.pwsh-version }} )
94+ check_name : Test Results (PowerShell)
9595 comment_mode : always
9696
9797 test-summary :
You can’t perform that action at this time.
0 commit comments