Skip to content

Commit 9cfcb8d

Browse files
Try fixing build
1 parent d03a108 commit 9cfcb8d

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,23 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v4
12+
13+
- name: Setup .NET 6
14+
uses: actions/setup-dotnet@v3
15+
with:
16+
dotnet-version: '6.0.x'
17+
18+
- name: Setup .NET 7
19+
uses: actions/setup-dotnet@v3
20+
with:
21+
dotnet-version: '7.0.x'
22+
23+
- name: Setup .NET 8
24+
uses: actions/setup-dotnet@v3
25+
with:
26+
dotnet-version: '8.0.x'
1227

13-
- name: Setup dotnet
28+
- name: Setup .NET 9
1429
uses: actions/setup-dotnet@v3
1530
with:
1631
dotnet-version: '9.0.x'

Build/Program.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,12 @@
154154

155155
var reportDir = Path.Combine(currentDir, ".reports");
156156
var dotCoverSnapshot = Path.Combine(reportDir, "dotCover.dcvr");
157-
test
158-
.Customize(cmd =>
159-
cmd.WithArgs("dotcover")
160-
.AddArgs(cmd.Args)
161-
.AddArgs(
162-
$"--dcOutput={dotCoverSnapshot}",
163-
"--dcFilters=+:module=CSharpInteractive.HostApi;+:module=dotnet-csi",
164-
"--dcAttributeFilters=System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage"))
157+
test.Customize(cmd => cmd.WithArgs("dotcover")
158+
.AddArgs(cmd.Args)
159+
.AddArgs(
160+
$"--dcOutput={dotCoverSnapshot}",
161+
"--dcFilters=+:module=CSharpInteractive.HostApi;+:module=dotnet-csi",
162+
"--dcAttributeFilters=System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage"))
165163
.Build()
166164
.EnsureSuccess(buildResult => buildResult is {ExitCode: 0, Summary.FailedTests: 0});
167165

0 commit comments

Comments
 (0)