Skip to content

Commit df9f1e3

Browse files
committed
ci: Expand test pipeline to run all tests, not just SFA
- Changed test path from Tests/SFA/ to Tests/ for comprehensive coverage - Updated path triggers to watch all Scripts, Tests, and Modules - Renamed job to reflect full test suite execution - Ensures all modules and utilities are validated on every push/PR
1 parent a65681e commit df9f1e3

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/pester-tests.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ on:
77
- testing
88
- test/**
99
paths:
10-
- 'Scripts/SFA/**'
11-
- 'Tests/SFA/**'
10+
- 'Scripts/**'
11+
- 'Tests/**'
12+
- 'Modules/**'
1213
- '.github/workflows/pester-tests.yml'
1314
pull_request:
1415
branches:
1516
- main
1617
- testing
1718
paths:
18-
- 'Scripts/SFA/**'
19-
- 'Tests/SFA/**'
19+
- 'Scripts/**'
20+
- 'Tests/**'
21+
- 'Modules/**'
2022
workflow_dispatch:
2123

2224
jobs:
@@ -42,12 +44,12 @@ jobs:
4244
Install-Module -Name Pester -RequiredVersion 5.7.1 -Force -SkipPublisherCheck
4345
Get-Module -Name Pester -ListAvailable
4446
45-
- name: Run SFA Tests
47+
- name: Run All Tests
4648
shell: pwsh
4749
run: |
48-
$testPath = 'Tests/SFA/'
50+
$testPath = 'Tests/'
4951
$resultsFile = 'test-results.xml'
50-
52+
5153
$pesterConfig = @{
5254
Path = $testPath
5355
OutputFile = $resultsFile
@@ -56,15 +58,15 @@ jobs:
5658
PassThru = $true
5759
WarningAction = 'SilentlyContinue'
5860
}
59-
61+
6062
$results = Invoke-Pester @pesterConfig
61-
63+
6264
Write-Host "`n========== Test Summary ==========" -ForegroundColor Cyan
6365
Write-Host "Total Tests: $($results.FailedCount + $results.PassedCount)"
6466
Write-Host "Passed: $($results.PassedCount)" -ForegroundColor Green
6567
Write-Host "Failed: $($results.FailedCount)" -ForegroundColor $(if ($results.FailedCount -gt 0) { 'Red' } else { 'Green' })
6668
Write-Host "=================================" -ForegroundColor Cyan
67-
69+
6870
if ($results.FailedCount -gt 0) {
6971
exit 1
7072
}
@@ -85,8 +87,8 @@ jobs:
8587
check_name: Test Results (PowerShell ${{ matrix.pwsh-version }})
8688
comment_mode: always
8789

88-
sfa-tests-summary:
89-
name: SFA Test Suite Summary
90+
test-summary:
91+
name: Complete Test Suite Summary
9092
runs-on: ubuntu-latest
9193
needs: test
9294
if: always()

0 commit comments

Comments
 (0)