-
-
Notifications
You must be signed in to change notification settings - Fork 103
61 lines (52 loc) · 1.64 KB
/
main.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
name: Main
on: push
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
main:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
# os: [macos-latest, ubuntu-latest, windows-2019]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: '20.x'
- if: runner.os == 'Windows'
name: Setup CSC
uses: yoavain/Setup-CSC@v5
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x' # SDK Version to use; x will use the latest version of the 8.0 channel
- if: runner.os == 'macOS'
name: Remove Mono from macOS # Mono interferes with Core CLR gyp compile
run: |
sudo rm -rf /Library/Frameworks/Mono.framework
sudo pkgutil --forget com.xamarin.mono-MDK.pkg
sudo rm /etc/paths.d/mono-commands
- if: runner.os == 'Windows'
name: Install Windows dependencies
run: npm i
- if: runner.os == 'Linux'
name: Install Linux dependencies
run: EDGE_USE_CORECLR=1 npm i
- if: runner.os == 'macOS'
name: Install macOS dependencies
run: EDGE_USE_CORECLR=1 npm i
- if: runner.os == 'Windows'
name: Run Windows tests
run: |
npm test
SET EDGE_USE_CORECLR=1 & npm test
- if: runner.os == 'Linux'
name: Run Linux tests
run: EDGE_USE_CORECLR=1 npm test
- if: runner.os == 'macOS'
name: Run macOS tests
run: EDGE_USE_CORECLR=1 npm test