-
-
Notifications
You must be signed in to change notification settings - Fork 625
35 lines (33 loc) · 953 Bytes
/
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
name: CI
on:
push:
branches:
- master
- release/*
pull_request:
branches:
- master
- release/*
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: dotnet build -c Debug Mono.Cecil.sln
- name: Test
run: dotnet test --no-build -c Debug Mono.Cecil.sln
linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Build
run: dotnet build -c Debug Mono.Cecil.sln
- name: Test .NET Core
run: dotnet test --no-build -c Debug Mono.Cecil.sln
- name: Get NuGet
run: curl -o ./nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- name: Get NUnit.Console
run: mono ./nuget.exe install NUnit.Console -Version 3.9.0 -OutputDirectory ./packages
- name: Test .NET 4.0 using Mono
run: mono ./packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe ./Mono.Cecil.nunit