Skip to content

Commit b42d346

Browse files
authored
Bump to Fable 4.27 and adjust ifdef for Fable4 (#649)
1 parent e280cfe commit b42d346

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.23.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
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
testfable4:
12-
runs-on: ubuntu-latest
12+
runs-on: windows-latest
1313

1414
steps:
1515
- uses: actions/checkout@v2
@@ -26,20 +26,12 @@ jobs:
2626
6.0.x
2727
- name: Restore tools
2828
run: dotnet tool restore
29-
- name: Install jq
30-
uses: dcarbone/[email protected]
31-
- name: Install fable
32-
run: |
33-
version=`cat ./.config/dotnet-tools.json | jq --raw-output '.tools.fable.version'`
34-
dotnet tool install --global Fable --version $version
35-
- name: Use Node.js
36-
uses: actions/setup-node@v1
37-
with:
38-
node-version: '18.x'
29+
- name: Setup Node.js environment
30+
uses: actions/setup-node@v5
3931
- name: Install npm dependencies
4032
working-directory: tests/FSharpPlusFable.Tests
4133
run: npm install
4234
- name: Run Fable tests
4335
working-directory: tests/FSharpPlusFable.Tests
44-
run: fable . --outDir bin --runScript ./bin
36+
run: dotnet fable . --outDir bin --runScript ./bin /d
4537

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)