-
Notifications
You must be signed in to change notification settings - Fork 95
110 lines (102 loc) · 3.15 KB
/
fable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Fable
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
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: Set target framework to net6 instead of net8
uses: Mudlet/xmlstarlet-action@master
with:
args: edit --inplace --update "/Project/PropertyGroup/TargetFrameworks" --value "netstandard2.0;netstandard2.1;net6.0" ./src/FSharpPlus/FSharpPlus.fsproj
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
7.0.x
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: 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: |
8.0.x
7.0.x
6.0.x
- name: Restore tools
run: dotnet tool restore
- name: Install jq
uses: dcarbone/install-jq-action@v1.0.1
- name: Install fable
run: |
version=`cat ./.config/dotnet-tools.json | jq --raw-output '.tools.fable.version'`
dotnet tool install --global Fable --version $version
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.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
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: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
7.0.x
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