-
Notifications
You must be signed in to change notification settings - Fork 17
55 lines (42 loc) · 1.5 KB
/
ci-build.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
name: CI Build
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
dotnet: [ 'net6.0', 'net45', 'netstandard2.0', 'netstandard1.5' ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install dependencies
run: dotnet restore src/ILovePDF
- name: Build ${{ matrix.dotnet }}
run: dotnet build --configuration Release src/ILovePDF --no-restore --framework ${{ matrix.dotnet }}
build_all_in_net46:
strategy:
matrix:
os: [ubuntu-latest]
dotnet: [ 'net46' ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install dependencies
run: dotnet restore
- name: Build ${{ matrix.dotnet }}
run: dotnet build --configuration Release --no-restore --framework ${{ matrix.dotnet }}
- name: Run tests
run: dotnet test --no-restore --verbosity normal --filter "FullyQualifiedName!=Tests.Edit.SignTests.Sign_RequestSignature_ShouldProccessOk&FullyQualifiedName!=Tests.Edit.SignTests.Sign_ComplexTest_ShouldProcessOk"