Skip to content

Bump to Fable 4.27 and adjust ifdef for Fable4 (#649) #1857

Bump to Fable 4.27 and adjust ifdef for Fable4 (#649)

Bump to Fable 4.27 and adjust ifdef for Fable4 (#649) #1857

Workflow file for this run

name: Fable
on:
push:
branches: [ master, v1.2, v1.3, v1.4, v1.5, v1.6, v1.7, v1.8 ]
pull_request:
branches: [ master, v1.2, v1.3, v1.4, v1.5, v1.6, v1.7, v1.8 ]
jobs:
testfable3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Restore
run: git submodule update --init --recursive
- name: Remove global json
run: rm global.json
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
- name: Restore tools
run: dotnet tool restore
- name: Create global.json
working-directory: tests/FSharpPlusFable.Tests
run: mv fable3-global.json global.json
- name: Install fable
run: dotnet tool install --global Fable --version 3.7.22
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install npm dependencies
working-directory: tests/FSharpPlusFable.Tests
run: npm install
- name: Run Fable tests
working-directory: tests/FSharpPlusFable.Tests
run: fable . --outDir bin --runScript ./bin
testfable4:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Restore
run: git submodule update --init --recursive
- name: Remove global json
run: rm global.json
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
- name: Restore tools
run: dotnet tool restore
- name: Setup Node.js environment
uses: actions/setup-node@v5
- name: Install npm dependencies
working-directory: tests/FSharpPlusFable.Tests
run: npm install
- name: Run Fable tests
working-directory: tests/FSharpPlusFable.Tests
run: dotnet fable . --outDir bin --runScript ./bin /d
testFable3SubsetOnCore:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Restore
run: git submodule update --init --recursive
- name: Remove global json
run: rm global.json
- name: Create global.json
working-directory: tests/FSharpPlusFable.Tests
run: mv fable3-global.json ../../global.json
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
- name: Restore tools
run: dotnet tool restore
# - name: Run tests (Fable2 subset but on .net)
# working-directory: tests/FSharpPlusFable.Tests
# run: dotnet run -c Fable
- name: Run tests (Fable3 subset but on .net)
working-directory: tests/FSharpPlusFable.Tests
run: dotnet run -c Fable3
- name: Run tests (Full subset for of tests .net)
working-directory: tests/FSharpPlusFable.Tests
run: dotnet run -c Release