-
Notifications
You must be signed in to change notification settings - Fork 95
45 lines (40 loc) · 1.1 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
name: Fable
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
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/[email protected]
- 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