Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate CI job for standalone #3544

Merged
merged 1 commit into from
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,24 @@ jobs:
- name: Fable Tests
run: ./build.sh test integration

# Separate build job for Standalone
build-standalone:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Setup Node.js environment
uses: actions/[email protected]

- name: Fable Tests
run: ./build.sh test standalone

# Separate build job for Python since we use a test matrix (will run in parallell)
build-python:
runs-on: ubuntu-latest
Expand Down
7 changes: 4 additions & 3 deletions src/Fable.Build/Test/JavaScript.fs
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ let private handleMainTests (isWatch: bool) (noDotnet: bool) =

testReact false

let isCI = Environment.GetEnvironmentVariable("CI") |> Option.ofObj
// let isCI = Environment.GetEnvironmentVariable("CI") |> Option.ofObj

if isCI.IsSome then
Standalone.handleStandaloneFast ()
// standalone will be tested by a separate CI job
// if isCI.IsSome then
// Standalone.handleStandaloneFast ()

let handle (args: string list) =
let isReactOnly = args |> List.contains "--react-only"
Expand Down
1 change: 1 addition & 0 deletions src/Fable.Build/Test/Standalone.fs
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ let handleStandaloneFast () =
Command.Run("npx", mochaCommand, workingDirectory = standaloneBuildDest)

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