You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
|
|
|
|
|
|
|
- uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.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@6b06171d1a131e7fd85121120a1c00c1ed03e033 # 5.3.0
|
|
|
|
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
|