Skip to content

Commit cd5b0a6

Browse files
committed
#175 - update ci/cd
1 parent ca102bc commit cd5b0a6

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.github/workflows/develop.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ jobs:
5252
- name: Build
5353
run: dotnet build /p:Version=${{ steps.version_step.outputs.fullSemVer }} --no-restore -c Debug -v n
5454
- name: Unit Tests
55-
run: dotnet test -c Debug --no-build -v n --filter="Category=Unit"
55+
run: dotnet test -c Debug --no-build -v n -- --filter-trait Category=Unit --ignore-exit-code 8
5656
- name: Integration Tests
5757
run: |
58-
dotnet test -c Debug /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --no-build -v n --filter="Category=Integration"
58+
dotnet test tests/HydraScript.IntegrationTests -c Debug --no-build -v n -- --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml
5959
mkdir coverage-report
6060
- name: Code Coverage Summary Report For Merge Request
6161
if: github.event_name == 'pull_request'
6262
uses: 5monkeys/cobertura-action@master
6363
with:
64-
path: ./tests/HydraScript.IntegrationTests/coverage.cobertura.xml
64+
path: ./tests/HydraScript.IntegrationTests/bin/Debug/net9.0/TestResults/coverage.cobertura.xml
6565
repo_token: ${{ secrets.GITHUB_TOKEN }}
6666
minimum_coverage: 80
6767
fail_below_threshold: true
@@ -73,7 +73,7 @@ jobs:
7373
- name: ReportGenerator
7474
uses: danielpalme/[email protected]
7575
with:
76-
reports: './tests/HydraScript.IntegrationTests/coverage.cobertura.xml'
76+
reports: './tests/HydraScript.IntegrationTests/bin/Debug/net9.0/TestResults/coverage.cobertura.xml'
7777
targetdir: './coverage-report'
7878
- name: Upload coverage report artifact
7979
if: github.event_name == 'push'

tests/Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<PackageVersion Include="MartinCostello.Logging.XUnit.v3" Version="0.6.0" />
99
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.13.0" />
1010
<PackageVersion Include="Microsoft.Extensions.Diagnostics.Testing" Version="9.4.0" />
11+
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.2" />
1112
<PackageVersion Include="NSubstitute" Version="5.3.0" />
1213
<PackageVersion Include="PolymorphicContracts.AutoFixture" Version="2.0.0" />
1314
<PackageVersion Include="System.Text.RegularExpressions" Version="4.3.1" />

tests/HydraScript.IntegrationTests/HydraScript.IntegrationTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<PackageReference Include="AwesomeAssertions" />
99
<PackageReference Include="MartinCostello.Logging.XUnit.v3" />
1010
<PackageReference Include="Microsoft.Extensions.Diagnostics.Testing" />
11+
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" />
1112
</ItemGroup>
1213

1314
<ItemGroup>

tests/HydraScript.IntegrationTests/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)