From 20bbcd4b5aed694ec928a91a7c44a3e4305de76b Mon Sep 17 00:00:00 2001 From: Jens Willmer Date: Thu, 1 Apr 2021 11:05:58 +0200 Subject: [PATCH] Update appveyor.yml --- appveyor.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 91fcdc00b..03d8f2101 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -56,6 +56,33 @@ install: dotnet tool install --global dotnet-sonarscanner +before_build: + - ps: >- + if(-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { + & dotnet-sonarscanner begin + /k:$env:sonarcloud_project_name + /v:AppVeyor_build_$env:APPVEYOR_BUILD_VERSION + /o:$env:sonarcloud_org_name + /s:$env:APPVEYOR_BUILD_FOLDER\.SonarQube.Analysis.xml + /d:sonar.host.url="https://sonarcloud.io" + /d:sonar.login=$env:sonarcloud_api_key + /d:sonar.cs.xunit.reportsPaths=$env:APPVEYOR_BUILD_FOLDER\**\TestResults\TestResults.xml + /d:sonar.cs.opencover.reportsPaths=$env:APPVEYOR_BUILD_FOLDER\**\TestResults\*\coverage.opencover.xml + /d:sonar.branch.name=$env:APPVEYOR_REPO_BRANCH + } + +build_script: + - ps: >- + cd .\src\dashboards\blazor\ElsaDashboard.Application + npm run build:css + + cd ..\..\..\designer\bindings\blazor\Elsa.Designer.Bindings.Blazor + + npm run build + cd ..\..\..\..\..\ + + dotnet build + test_script: - ps: dotnet test --collect:"XPlat Code Coverage" --logger:xunit -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover