File tree Expand file tree Collapse file tree 5 files changed +99
-24
lines changed
tests/OSPSuite.Core.IntegrationTests/Helpers Expand file tree Collapse file tree 5 files changed +99
-24
lines changed Original file line number Diff line number Diff line change 1+ name : ' Cover with JetBrains dotCover'
2+ description : ' Install and run JetBrains dotcover with an xml configuration'
3+ author : ' Robert McIntosh'
4+
5+ on :
6+ workflow_call :
7+ secrets :
8+ CODECOV_TOKEN :
9+ required : true
10+
11+ inputs :
12+ xml-configuration :
13+ description : ' The xml file that configures the dotCover covearage'
14+ required : true
15+
16+
17+ runs :
18+ steps :
19+ - id : install-prerequisites
20+ run : |
21+ dotnet tool install --global JetBrains.dotCover.CommandLineTools --version 2024.3.5
22+ nuget install NUnit.ConsoleRunner -Version 3.19.2 -DirectDownload -OutputDirectory .
23+ shell : powershell
24+
25+ - id : run-tests
26+ run : dotnet dotcover cover ${{ inputs.xml-configuration }} --targetExecutable=./NUnit.ConsoleRunner.3.19.2/tools/nunit3-console.exe --output=coverageReport.xml --reportType=XML -- test --no-build
27+ shell : powershell
28+
29+ - uses : codecov/codecov-action@v5
30+ with :
31+ fail_ci_if_error : true
32+ files : ./coverageReport.xml
33+ token : ${{ secrets.CODECOV_TOKEN }}
34+ verbose : true
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ jobs:
103103 echo "APP_VERSION=${{needs.get-version.outputs.APP_VERSION}}" | Out-File -FilePath $env:GITHUB_ENV -Append
104104 echo "BUILD_ID=${{needs.get-version.outputs.BUILD_ID}}" | Out-File -FilePath $env:GITHUB_ENV -Append
105105
106- - name : Build Debug and Release
106+ - name : Build
107107 run : msbuild OSPSuite.Core.sln /p:Version=${{env.APP_VERSION}}
108108
109109 - name : Test
Original file line number Diff line number Diff line change 1+ name : Build and Publish
2+
3+ on :
4+ push :
5+ branches :
6+ - 2426-build-on-github-actions-instead-of-appveyor
7+
8+ jobs :
9+ cover :
10+ runs-on : windows-latest
11+ steps :
12+ - name : Checkout code
13+ uses : actions/checkout@v4
14+ with :
15+ submodules : ' true'
16+
17+ - name : Add msbuild to PATH
18+ uses : microsoft/setup-msbuild@v2
19+
20+ - name : Restore dependencies
21+ run : |
22+ nuget sources add -username Open-Systems-Pharmacology -password ${{ secrets.GITHUB_TOKEN }} -name OSP-GitHub-Packages -source "https://nuget.pkg.github.com/Open-Systems-Pharmacology/index.json"
23+ nuget sources add -name bddhelper -source https://ci.appveyor.com/nuget/ospsuite-bddhelper
24+ nuget sources add -name utility -source https://ci.appveyor.com/nuget/ospsuite-utility
25+ nuget sources add -name serializer -source https://ci.appveyor.com/nuget/ospsuite-serializer
26+ nuget sources add -name databinding -source https://ci.appveyor.com/nuget/ospsuite-databinding
27+ nuget sources add -name texreporting -source https://ci.appveyor.com/nuget/ospsuite-texreporting
28+ nuget sources add -name databinding-devexpress -source https://ci.appveyor.com/nuget/ospsuite-databinding-devexpress
29+ dotnet restore
30+
31+ - name : Build
32+ run : msbuild OSPSuite.Core.sln /p:Version=12.1.999
33+
34+
35+ - name : Cover and report
36+ uses : ./.github/actions/dotcover
37+ with :
38+ xml-configuration : dotcover.xml
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <CoverageParams >
3+ <TargetArguments >
4+ Tests\OSPSuite.Core.Tests\bin\Debug\net472\OSPSuite.Core.Tests.dll
5+ Tests\OSPSuite.Core.IntegrationTests\bin\Debug\net472\OSPSuite.Core.IntegrationTests.dll
6+ Tests\OSPSuite.Presentation.Tests\bin\Debug\net472\OSPSuite.Presentation.Tests.dll
7+ Tests\OSPSuite.Infrastructure.Tests\bin\Debug\net472\OSPSuite.Infrastructure.Tests.dll
8+ Tests\OSPSuite.R.Tests\bin\Debug\net472\OSPSuite.R.Tests.dll
9+ Tests\OSPSuite.UI.Tests\bin\Debug\net472\OSPSuite.UI.Tests.dll
10+ </TargetArguments >
11+ <TargetWorkingDir >./</TargetWorkingDir >
12+
13+ <ExcludeFileMasks >
14+ <Mask >src/**/*.Designer.cs</Mask >
15+ <Mask >src/OSPSuite.UI/Views/**</Mask >
16+ <Mask >src/OSPSuite.UI/Controls/**</Mask >
17+ </ExcludeFileMasks >
18+
19+ <Filters >
20+ <ExcludeFilters >
21+ <FilterEntry >
22+ <ModuleMask >FakeItEasy</ModuleMask >
23+ </FilterEntry >
24+ </ExcludeFilters >
25+ </Filters >
26+ </CoverageParams >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments