File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 1616
1717jobs :
1818 test :
19- runs-on : windows-latest
20- timeout-minutes : 5
21-
19+ runs-on : windows-latest
2220 steps :
2321 - name : Checkout repository
2422 uses : actions/checkout@v4
@@ -35,19 +33,25 @@ jobs:
3533 cache : ' npm'
3634 cache-dependency-path : |
3735 package-lock.json
36+ angular-report-designer/package-lock.json
3837
3938 - name : Setup Chrome
4039 uses : browser-actions/setup-chrome@v1
4140 with :
4241 chrome-version : stable
4342
4443 - name : Run Tests
44+ shell : pwsh
4545 run : |
46- $exitCode = pwsh -ExecutionPolicy Bypass -File test/main-test.ps1
47- Write-Host "Test script exit code: $exitCode"
48- if ($exitCode -ne 0) {
49- Write-Error "❌ Tests failed with exit code: $exitCode"
50- exit $exitCode
46+ try {
47+ & "test/main-test.ps1"
48+ if ($LASTEXITCODE -ne 0) {
49+ Write-Host "❌ Tests failed with exit code: $LASTEXITCODE" -ForegroundColor Red
50+ exit $LASTEXITCODE
51+ }
52+ Write-Host "✅ Tests passed successfully" -ForegroundColor Green
53+ }
54+ catch {
55+ Write-Host "❌ Test execution failed: $($_.Exception.Message)" -ForegroundColor Red
56+ exit 1
5157 }
52- Write-Host "✅ Tests passed successfully"
53- timeout-minutes : 5
You can’t perform that action at this time.
0 commit comments