Skip to content

Misc fixes

Misc fixes #239

Workflow file for this run

name: Build
on:
push:
pull_request:
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-15-intel, macos-latest]
configuration: [Debug, Release]
include:
- os: ubuntu-latest
configuration: Release
coverage: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Build
run: dotnet build Source.NET.slnx -c ${{ matrix.configuration }}
- name: Test
run: dotnet test --project Source.Common.Tests/Source.Common.Tests.csproj -c ${{ matrix.configuration }} --no-build ${{ matrix.coverage && '--coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml --coverage-settings Source.Common.Tests/coverage.settings.xml --results-directory TestResults' || '' }}
- name: Coverage report
if: matrix.coverage
uses: danielpalme/ReportGenerator-GitHub-Action@5
with:
reports: TestResults/coverage.cobertura.xml
targetdir: CoverageReport
reporttypes: MarkdownSummaryGithub
- name: Coverage summary
if: matrix.coverage
shell: bash
run: cat CoverageReport/SummaryGithub.md >> "$GITHUB_STEP_SUMMARY"