Skip to content

Commit

Permalink
Merge pull request #8 from MaxDeg/remove-use-to-avoid-sync-flush
Browse files Browse the repository at this point in the history
Avoid "Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true." error
  • Loading branch information
MangelMaxime committed Feb 24, 2020
2 parents 6045f79 + 32e9af5 commit ee35cb6
Show file tree
Hide file tree
Showing 10 changed files with 869 additions and 16 deletions.
13 changes: 9 additions & 4 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ module Source =
let dir = root </> "src"
let projectFile = dir </> "Thoth.Json.Giraffe.fsproj"

// module Tests =
// let dir = root </> "tests"
// let projectFile = dir </> "Tests.fsproj"
module Tests =
let dir = root </> "tests"
let projectFile = dir </> "Thoth.Json.Giraffe.Tests.fsproj"

let gitOwner = "thoth-org"
let repoName = "Thoth.Json.Giraffe"
Expand Down Expand Up @@ -180,7 +180,7 @@ let getNotes (version : string) =
let m = versionRegex.Match(line)

if m.Success then
not (m.Groups.[1].Value = version)
m.Groups.[1].Value <> version
else
true
)
Expand All @@ -192,6 +192,10 @@ let getNotes (version : string) =
not m.Success
)

Target.create "Test" (fun _ ->
DotNet.test id Tests.projectFile
)

Target.create "Publish" (fun _ ->
let version = getLastVersion()
pushNuget version Source.projectFile
Expand Down Expand Up @@ -220,6 +224,7 @@ Target.create "Release" (fun _ ->
"Clean"
==> "YarnInstall"
==> "DotnetRestore"
==> "Test"
==> "Publish"
==> "Release"

Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "3.0.100"
"version": "3.1.101"
}
}
Loading

0 comments on commit ee35cb6

Please sign in to comment.