Refactactor for compatibilty with earlier .NET versions #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |