Merge remote-tracking branch 'upstream/master' #35
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: 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: "8.0.x" | |
jobs: | |
run-tests: | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
runs-on: "${{ matrix.os }}" | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 | |
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@62f9e70ab348d56eee76d446b4db903a85ab0ea8 # v5.3.11 | |
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 |