Skip to content

Commit 7929401

Browse files
author
Natalia Kazakova (DevExpress)
committed
add update
1 parent daa60d5 commit 7929401

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ env:
1616

1717
jobs:
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

0 commit comments

Comments
 (0)