Skip to content

Commit df22aaf

Browse files
committed
Bump to Fable 4.27 and adjust ifdef for Fable4 (#649)
1 parent ac1be23 commit df22aaf

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"fable": {
6-
"version": "4.5.0",
6+
"version": "4.27.0",
77
"commands": [
88
"fable"
99
]

.github/workflows/fable.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: fable . --outDir bin --runScript ./bin
4242

4343
testfable4:
44-
runs-on: ubuntu-latest
44+
runs-on: windows-latest
4545

4646
steps:
4747
- uses: actions/checkout@v2
@@ -56,22 +56,14 @@ jobs:
5656
6.0.x
5757
- name: Restore tools
5858
run: dotnet tool restore
59-
- name: Install jq
60-
uses: dcarbone/[email protected]
61-
- name: Install fable
62-
run: |
63-
version=`cat ./.config/dotnet-tools.json | jq --raw-output '.tools.fable.version'`
64-
dotnet tool install --global Fable --version $version
65-
- name: Use Node.js
66-
uses: actions/setup-node@v1
67-
with:
68-
node-version: '18.x'
59+
- name: Setup Node.js environment
60+
uses: actions/setup-node@v5
6961
- name: Install npm dependencies
7062
working-directory: tests/FSharpPlusFable.Tests
7163
run: npm install
7264
- name: Run Fable tests
7365
working-directory: tests/FSharpPlusFable.Tests
74-
run: fable . --outDir bin --runScript ./bin
66+
run: dotnet fable . --outDir bin --runScript ./bin /d
7567

7668
testFable3SubsetOnCore:
7769
runs-on: ubuntu-latest

src/FSharpPlus/Control/Comonad.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ open System.Threading.Tasks
77
open FSharpPlus
88
open FSharpPlus.Extensions
99
open FSharpPlus.Internals
10-
#if !FABLE_COMPILER4
10+
#if !FABLE_COMPILER_4
1111

1212
// Comonad class ----------------------------------------------------------
1313

tests/FSharpPlusFable.Tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"type": "module",
44
"scripts": {
5-
"test": "fable . --outDir bin --runScript ./bin /d",
5+
"test": "dotnet fable . --outDir bin --runScript ./bin /d",
66
"test_debug": "node --eval \"require('esm')(module)('./bin/./Tests.js')\" ./bin/./Tests.js ./bin /d"
77
},
88
"name": "tests"

0 commit comments

Comments
 (0)