Tests
This commit is contained in:
parent
8ed405adf2
commit
eec4bb6580
|
@ -4,6 +4,9 @@ name: Run test on DLLs matching the specified pattern
|
||||||
description: Runs unit/integration tests
|
description: Runs unit/integration tests
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
artifact:
|
||||||
|
description: 'Test binary artifact'
|
||||||
|
required: true
|
||||||
pattern:
|
pattern:
|
||||||
description: 'Pattern for DLLs'
|
description: 'Pattern for DLLs'
|
||||||
required: true
|
required: true
|
||||||
|
@ -20,9 +23,9 @@ runs:
|
||||||
- name: Download Artifact
|
- name: Download Artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: tests-linux-x64
|
name: ${{ inputs.artifact }}
|
||||||
path: _tests
|
path: _tests
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: dotnet test Sonarr.*.Test.dll --filter "${{ inputs.filter }}"
|
run: dotnet test Sonarr.*.Test.dll --filter "${{ inputs.filter }}" --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
|
||||||
|
|
|
@ -112,5 +112,6 @@ jobs:
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: ./.github/actions/test
|
uses: ./.github/actions/test
|
||||||
with:
|
with:
|
||||||
|
artifact: tests-linux-x64
|
||||||
pattern: Sonarr.*.Test.dll
|
pattern: Sonarr.*.Test.dll
|
||||||
filter: TestCategory!=ManualTest&TestCategory!=WINDOWS&TestCategory!=IntegrationTest&TestCategory!=AutomationTest
|
filter: TestCategory!=ManualTest&TestCategory!=WINDOWS&TestCategory!=IntegrationTest&TestCategory!=AutomationTest
|
||||||
|
|
Loading…
Reference in New Issue