Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2021-02-07 01:36:57 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2021-02-07 01:36:57 +0300
commit2a8e58ed5e00d922325fb3f9e5e4f14318e503d6 (patch)
tree58df7d02479c61802e4a76a9cce7a2f5fa2c039c /.github
parentf911417f1a9afeaae4fe5eb04f7c56ebe893d098 (diff)
Use separate steps for unit tests on Linux and Windows.
These differ by using mono.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/unit_tests.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml
index 4d7693b18..f928356a1 100644
--- a/.github/workflows/unit_tests.yml
+++ b/.github/workflows/unit_tests.yml
@@ -36,11 +36,18 @@ jobs:
nuget restore Duplicati.sln
msbuild -p:Configuration=Release Duplicati.sln
- - name: Run Unit Tests
+ - name: Run Unit Tests (Linux)
+ if: matrix.os == 'ubuntu-latest'
run: |
nuget install NUnit.Runners -Version 3.12.0 -OutputDirectory nunit
mono nunit/NUnit.ConsoleRunner.3.12.0/tools/nunit3-console.exe Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==Utility --result="TestResults/test_results_${{ matrix.os }}.xml"
+ - name: Run Unit Tests (Windows)
+ if: matrix.os == 'windows-latest'
+ run: |
+ nuget install NUnit.Runners -Version 3.12.0 -OutputDirectory nunit
+ nunit/NUnit.ConsoleRunner.3.12.0/tools/nunit3-console.exe Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==Utility --result="TestResults/test_results_${{ matrix.os }}.xml"
+
- name: Report Unit Test Results
uses: MirrorNG/nunit-reporter@v1.0.11
if: always()