123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- name: Tests
- on:
- push:
- branches:
- - master
- # Run tests against the forked branch, but
- # do not allow access to secrets
- # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflows-in-forked-repositories
- pull_request:
- env:
- SDK_VERSION: "9.0.x"
- jobs:
- run-tests:
- strategy:
- matrix:
- os: ["ubuntu-latest", "macos-latest", "windows-latest"]
- fail-fast: false
- runs-on: "${{ matrix.os }}"
- steps:
- - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- - uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
- with:
- dotnet-version: ${{ env.SDK_VERSION }}
- - name: Run DotNet CLI Tests
- run: >
- dotnet test Jellyfin.sln
- --configuration Release
- --collect:"XPlat Code Coverage"
- --settings tests/coverletArgs.runsettings
- --verbosity minimal
- - name: Merge code coverage results
- uses: danielpalme/ReportGenerator-GitHub-Action@c38c522d4b391c1b0da979cbb2e902c0a252a7dc # v5.4.3
- with:
- reports: "**/coverage.cobertura.xml"
- targetdir: "merged/"
- reporttypes: "Cobertura"
- # TODO - which action / tool to use to publish code coverage results?
- # - name: Publish code coverage results
|