File tree Expand file tree Collapse file tree 3 files changed +38
-3
lines changed Expand file tree Collapse file tree 3 files changed +38
-3
lines changed Original file line number Diff line number Diff line change 34
34
uses : actions/setup-dotnet@v3
35
35
with :
36
36
dotnet-version : 6.x.x
37
- - name : Build and test
37
+ - name : Build and test (includes netfx)
38
38
working-directory : ./
39
- run : ./build.cmd runtests
39
+ run : ./build.cmd runtestsnetfx
Original file line number Diff line number Diff line change @@ -62,18 +62,25 @@ let pkgDir = "pkg"
62
62
/// binaries are built using this configuration.
63
63
let configuration = " Release"
64
64
65
+ // test projects (.NET)
65
66
let CoreTestProject = ProjectInfo.create( " Plotly.NET.Tests" , " tests/Plotly.NET.Tests/Plotly.NET.Tests.fsproj" )
66
67
let ImageExportTestProject = ProjectInfo.create( " Plotly.NET.ImageExport.Tests" , " tests/Plotly.NET.ImageExport.Tests/Plotly.NET.ImageExport.Tests.fsproj" )
67
68
let CSharpInteroperabilityTestProject = ProjectInfo.create( " Plotly.NET.Tests.CSharpInteroperability" , " tests/Plotly.NET.Tests.CSharpInteroperability/Plotly.NET.Tests.CSharpInteroperability.csproj" )
68
69
let CSharpTestProject = ProjectInfo.create( " Plotly.NET.CSharp.Tests" , " tests/Plotly.NET.CSharp.Tests/Plotly.NET.CSharp.Tests.csproj" )
69
- let StrongNameTestProject = ProjectInfo.create( " Plotly.NET.Tests.StrongName" , " tests/Plotly.NET.Tests.StrongName/Plotly.NET.Tests.StrongName.fsproj" )
70
70
71
71
/// contains project info about all test projects
72
72
let testProjects =
73
73
[
74
74
CoreTestProject
75
75
ImageExportTestProject
76
76
CSharpTestProject
77
+ ]
78
+
79
+ // test projects (.NET framework)
80
+ let StrongNameTestProject = ProjectInfo.create( " Plotly.NET.Tests.StrongName" , " tests/Plotly.NET.Tests.StrongName/Plotly.NET.Tests.StrongName.fsproj" )
81
+
82
+ let testProjectsNetFX =
83
+ [
77
84
StrongNameTestProject
78
85
]
79
86
Original file line number Diff line number Diff line change @@ -18,6 +18,18 @@ let buildTests = BuildTask.create "BuildTests" [clean; build] {
18
18
)
19
19
}
20
20
21
+ let buildTestsNetFX = BuildTask.create " BuildTestsNetFX" [ clean; build] {
22
+ testProjectsNetFX
23
+ |> List.iter ( fun pInfo ->
24
+ let proj = pInfo.ProjFile
25
+ proj
26
+ |> DotNet.build ( fun p ->
27
+ p
28
+ |> DotNet.Options.withCustomParams ( Some " --no-dependencies" )
29
+ )
30
+ )
31
+ }
32
+
21
33
/// runs the individual test projects via `dotnet test`
22
34
let runTests =
23
35
BuildTask.create " RunTests" [ clean; build; buildTests ] {
@@ -33,6 +45,22 @@ let runTests =
33
45
testProjectInfo.ProjFile)
34
46
}
35
47
48
+ /// runs the individual test projects via `dotnet test`
49
+ let runTestsWithNetFX =
50
+ BuildTask.create " RunTestsNetFX" [ clean; build; buildTests; buildTestsNetFX] {
51
+ testProjects
52
+ @ testProjectsNetFX
53
+ |> Seq.iter ( fun testProjectInfo ->
54
+ Fake.DotNet.DotNet.test
55
+ ( fun testParams ->
56
+ { testParams with
57
+ Logger = Some " console;verbosity=detailed"
58
+ Configuration = DotNet.BuildConfiguration.fromString configuration
59
+ NoBuild = true
60
+ })
61
+ testProjectInfo.ProjFile)
62
+ }
63
+
36
64
// to do: use this once we have actual tests
37
65
let runTestsWithCodeCov =
38
66
BuildTask.create " RunTestsWithCodeCov" [ clean; build ] {
You can’t perform that action at this time.
0 commit comments