Skip to content

Commit c8f740e

Browse files
committed
fix cov +semver:skip
1 parent d2fcec6 commit c8f740e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/develop.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ jobs:
5050
- name: Restore dependencies
5151
run: dotnet restore
5252
- name: Build
53-
run: dotnet build /p:Version=${{ steps.version_step.outputs.fullSemVer }} --no-restore -c Release -v n
53+
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 Release --no-build -v n --filter="Category=Unit"
55+
run: dotnet test -c Debug --no-build -v n --filter="Category=Unit"
5656
- name: Integration Tests
5757
run: |
58-
dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --no-build -v n --filter="Category=Integration"
58+
dotnet test -c Debug /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --no-build -v n --filter="Category=Integration"
5959
mkdir coverage-report
6060
- name: Code Coverage Summary Report For Merge Request
6161
if: github.event_name == 'pull_request_target'
@@ -86,4 +86,4 @@ jobs:
8686
uses: actions/upload-artifact@v4
8787
with:
8888
name: windows_build_${{ steps.version_step.outputs.fullSemVer }}
89-
path: ./src/HydraScript/bin/Release/net9.0
89+
path: ./src/HydraScript/bin/Debug/net9.0

src/HydraScript/ExecuteCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using System.CommandLine;
2+
using System.Diagnostics.CodeAnalysis;
23

34
namespace HydraScript;
45

6+
[ExcludeFromCodeCoverage]
57
internal class ExecuteCommand : CliRootCommand
68
{
79
internal ExecuteCommand() : base("HydraScript interpreter")

0 commit comments

Comments
 (0)