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 3434 uses : actions/setup-dotnet@v3
3535 with :
3636 dotnet-version : 6.x.x
37- - name : Build and test
37+ - name : Build and test (includes netfx)
3838 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"
6262/// binaries are built using this configuration.
6363let configuration = " Release"
6464
65+ // test projects (.NET)
6566let CoreTestProject = ProjectInfo.create( " Plotly.NET.Tests" , " tests/Plotly.NET.Tests/Plotly.NET.Tests.fsproj" )
6667let ImageExportTestProject = ProjectInfo.create( " Plotly.NET.ImageExport.Tests" , " tests/Plotly.NET.ImageExport.Tests/Plotly.NET.ImageExport.Tests.fsproj" )
6768let CSharpInteroperabilityTestProject = ProjectInfo.create( " Plotly.NET.Tests.CSharpInteroperability" , " tests/Plotly.NET.Tests.CSharpInteroperability/Plotly.NET.Tests.CSharpInteroperability.csproj" )
6869let 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" )
7070
7171/// contains project info about all test projects
7272let testProjects =
7373 [
7474 CoreTestProject
7575 ImageExportTestProject
7676 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+ [
7784 StrongNameTestProject
7885 ]
7986
Original file line number Diff line number Diff line change @@ -18,6 +18,18 @@ let buildTests = BuildTask.create "BuildTests" [clean; build] {
1818 )
1919}
2020
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+
2133/// runs the individual test projects via `dotnet test`
2234let runTests =
2335 BuildTask.create " RunTests" [ clean; build; buildTests ] {
@@ -33,6 +45,22 @@ let runTests =
3345 testProjectInfo.ProjFile)
3446 }
3547
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+
3664// to do: use this once we have actual tests
3765let runTestsWithCodeCov =
3866 BuildTask.create " RunTestsWithCodeCov" [ clean; build ] {
You can’t perform that action at this time.
0 commit comments