Page resources were not inherited to xobjects if no Resources dict wa… #121
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: Build and test | |
on: | |
push: | |
branches: [ master, 'v*' ] | |
pull_request: | |
branches: [ master ] | |
env: | |
PdfToSvgSkipSigning: true | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ 'ubuntu-latest', 'windows-latest' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
3.1.x | |
5.0.x | |
6.0.x | |
8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore -c Release | |
- name: Test | |
run: dotnet test tests/PdfToSvg.Tests/PdfToSvg.Tests.csproj --no-build -c Release --verbosity normal --collect "Code Coverage;Format=cobertura" --results-directory TestResults | |
- name: Code coverage report | |
uses: danielpalme/ReportGenerator-GitHub-Action@5.3.8 | |
with: | |
reports: "TestResults/**/*.cobertura.xml" | |
targetdir: "TestReport" | |
reporttypes: "Html" | |
assemblyfilters: '+PdfToSvg' | |
classfilters: '-System.*' | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-${{ matrix.os }} | |
path: TestReport | |
- uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: actual-${{ matrix.os }} | |
path: tests/TestFiles/Own/actual-** |