Skip to content

Commit

Permalink
Use terminal logger
Browse files Browse the repository at this point in the history
Use the new MSBuild terminal logger.
  • Loading branch information
martincostello committed Nov 9, 2023
1 parent dc6a4cb commit 1aa9dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if (($installDotNetSdk -eq $true) -And ($null -eq $env:TF_BUILD)) {
}

Write-Host "Publishing application..." -ForegroundColor Green
& $dotnet publish (Join-Path $solutionPath "src" "ApplePayJS" "ApplePayJS.csproj") --output $OutputPath --configuration $Configuration
& $dotnet publish (Join-Path $solutionPath "src" "ApplePayJS" "ApplePayJS.csproj") --output $OutputPath --configuration $Configuration --tl

$additionalArgs = @()

Expand All @@ -77,7 +77,7 @@ if (![string]::IsNullOrEmpty($env:GITHUB_SHA)) {
}

Write-Host "Running tests..." -ForegroundColor Green
& $dotnet test (Join-Path $solutionPath "tests" "ApplePayJS.Tests" "ApplePayJS.Tests.csproj") --output $OutputPath --configuration $Configuration $additionalArgs
& $dotnet test (Join-Path $solutionPath "tests" "ApplePayJS.Tests" "ApplePayJS.Tests.csproj") --output $OutputPath --configuration $Configuration --tl $additionalArgs

if ($LASTEXITCODE -ne 0) {
throw "dotnet publish failed with exit code $LASTEXITCODE"
Expand Down

0 comments on commit 1aa9dfb

Please sign in to comment.