From d79871a6f00b3094bf8a0362b1f4d740d936eea6 Mon Sep 17 00:00:00 2001 From: AlisherAmonulloev Date: Fri, 13 Dec 2024 10:57:13 +0200 Subject: [PATCH] Update test-example.ps1 --- test-example.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test-example.ps1 b/test-example.ps1 index c247a1e..6967e9d 100644 --- a/test-example.ps1 +++ b/test-example.ps1 @@ -57,6 +57,7 @@ function Process-JavaScriptProjects { npm install $packageList --save --save-exact --no-fund if (-not $?) { Write-Error "`nERROR: Failed to install DevExtreme packages: $($folder.Name)" + $global:LASTEXITCODE = 1 $global:errorCode = 1 } @@ -64,6 +65,7 @@ function Process-JavaScriptProjects { npm install --save --save-exact --no-fund --loglevel=error if (-not $?) { Write-Error "`nERROR: Failed to install packages: $($folder.Name)" + $global:LASTEXITCODE = 1 $global:errorCode = 1 } @@ -71,6 +73,7 @@ function Process-JavaScriptProjects { npm run build if (-not $?) { Write-Error "`nERROR: Failed to build the project: $($folder.Name)" + $global:LASTEXITCODE = 1 $global:errorCode = 1 } @@ -100,6 +103,7 @@ function Process-DotNetProjects { Write-Output "`nBuild succeeded for $($slnFile.FullName)." } else { Write-Error "`nBuild failed for $($slnFile.FullName)." + $global:LASTEXITCODE = 1 $global:errorCode = 1 } }