Skip to content

Commit

Permalink
Fix running tests on a fresh workspace + try to debug rust workflow f…
Browse files Browse the repository at this point in the history
…ailure
  • Loading branch information
Maxime Mangel committed Sep 28, 2023
1 parent c46259a commit 5bdc88c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
test: ["default", "no_std", "threaded"]
test: ["default"] // "no_std", "threaded"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions build/FableLibrary/JavaScript.fs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ type BuildFableLibraryJavaScript() =
if Directory.Exists jsOutDir then
Directory.Delete(jsOutDir, true)

Command.Run("npm", "install", workingDirectory = Build.Workspace.root)

// Compile the library to JavaScript using the TypeScript compiler
let args =
CmdLine.empty
Expand Down
2 changes: 2 additions & 0 deletions build/Test/Integration.fs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ let private testProjectConfig (projectDirName : string) (configuration : string
)

let handle (args: string list) =
BuildFableLibraryJavaScript().Run()

Command.Run(
"dotnet",
"run -c Release",
Expand Down
2 changes: 2 additions & 0 deletions build/Workspace.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ module Build.Workspace
open Build.Utils
open System.IO

let root = Path.Resolve()

module ProjectDir =

let fableAst = Path.Resolve("src", "Fable.AST")
Expand Down

0 comments on commit 5bdc88c

Please sign in to comment.