forked from joemphilips/DotNetLightning
-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (40 loc) · 1.4 KB
/
ci.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: Build and deploy
on: [push, pull_request]
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
dotnet: ['3.1.200']
fail-fast: true
steps:
- uses: actions/checkout@v2
- name: Setup ${{ matrix.dotnet }} .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Run tests (Portability)
# we want to run only once.
if: startsWith(matrix.os, 'ubuntu-20')
run: |
dotnet build tests/DotNetLightning.Core.Tests -p:Portability=True
dotnet run --no-build --project tests/DotNetLightning.Core.Tests
- name: Clean to prepare for NSec build
run: |
dotnet clean
- name: Run core tests
run: |
dotnet run --project tests/DotNetLightning.Core.Tests
- name: Run other tests
run: |
dotnet test --filter "FullyQualifiedName!~Macaroon" # see https://github.com/joemphilips/DotNetLightning/issues/153
build_with_fsharp_from_mono:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build
run: |
DEBIAN_FRONTEND=noninteractive sudo apt install -y msbuild fsharp
dotnet restore -p:Portability=True DotNetLightning.sln
msbuild src/DotNetLightning.Core/DotNetLightning.Core.fsproj -p:Portability=True -p:TargetFramework=netstandard2.0