Skip to content

Commit 4b76496

Browse files
committed
ci: Update workflow to use self-hosted Ubuntu runner
1 parent 3f43293 commit 4b76496

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/pester-tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ on:
2424
jobs:
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:

0 commit comments

Comments
 (0)