73ee7591e8
Former-commit-id: d18deab1b47cfd3ad8cba82b3f37d00eec2170af
36 lines
954 B
YAML
36 lines
954 B
YAML
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-latest
|
|
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
|