File tree 3 files changed +45
-3
lines changed
3 files changed +45
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and test
2
+
3
+ on :
4
+ push :
5
+ branches : [ developer ]
6
+ pull_request :
7
+ branches : [ developer ]
8
+
9
+ jobs :
10
+ build-and-test-linux :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Setup .NET 5
17
+ uses : actions/setup-dotnet@v1
18
+ with :
19
+ dotnet-version : ' 5.0.x'
20
+ - name : Restore local tools
21
+ run : dotnet tool restore
22
+ - name : Build and test
23
+ run : dotnet fake build -t runTests
24
+
25
+ build-and-test-windows :
26
+
27
+ runs-on : windows-latest
28
+
29
+ steps :
30
+ - uses : actions/checkout@v2
31
+ - name : Setup .NET 5
32
+ uses : actions/setup-dotnet@v1
33
+ with :
34
+ dotnet-version : ' 5.0.x'
35
+ - name : Restore local tools
36
+ run : dotnet tool restore
37
+ - name : Build and test
38
+ run : dotnet fake build -t runTests
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ module ProjectInfo =
61
61
62
62
let project = " Dash.NET"
63
63
64
+ let solutionFile = " Dash.NET.sln"
65
+
64
66
let testProject = " tests/Dash.NET.Tests/Dash.NET.Tests.fsproj"
65
67
66
68
let summary = " F# interface to Dash- the most downloaded framework for building ML & data science web apps"
@@ -115,8 +117,8 @@ module BasicTasks =
115
117
}
116
118
117
119
let build = BuildTask.create " Build" [ clean] {
118
- !! " src/**/*.*proj "
119
- |> Seq.iter ( DotNet.build id)
120
+ solutionFile
121
+ |> DotNet.build id
120
122
}
121
123
122
124
let copyBinaries = BuildTask.create " CopyBinaries" [ clean; build] {
@@ -135,12 +137,15 @@ module TestTasks =
135
137
open ProjectInfo
136
138
open BasicTasks
137
139
140
+
138
141
let runTests = BuildTask.create " RunTests" [ clean; build; copyBinaries] {
139
142
let standardParams = Fake.DotNet.MSBuild.CliArguments.Create ()
140
143
Fake.DotNet.DotNet.test( fun testParams ->
141
144
{
142
145
testParams with
143
146
Logger = Some " console;verbosity=detailed"
147
+ Configuration = DotNet.BuildConfiguration.fromString configuration
148
+ NoBuild = true
144
149
}
145
150
) testProject
146
151
}
Original file line number Diff line number Diff line change 15
15
<PackageReference Include =" Expecto" Version =" 9.*" />
16
16
<PackageReference Include =" YoloDev.Expecto.TestSdk" Version =" 0.*" />
17
17
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.*" />
18
- <PackageReference Update =" FSharp.Core" Version =" 4.*" />
19
18
</ItemGroup >
20
19
21
20
<ItemGroup >
You can’t perform that action at this time.
0 commit comments