Files
duplicati/.github/workflows/unit_tests.yml
T
2021-02-06 12:59:25 -08:00

39 lines
987 B
YAML

name: Tests
on:
push:
branches: "*"
pull_request:
branches: "*"
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Install mono
run: sudo apt-get install mono-complete
- name: Checkout $GITHUB_SHA from $GITHUB_REF
uses: actions/checkout@v2
- name: Build Duplicati
run: |
nuget restore Duplicati.sln
msbuild -p:Configuration=Release -p:DefineConstants=ENABLE_GTK Duplicati.sln
- name: Run Unit Tests
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 --work=TestResults
- name: Report Unit Test Results
uses: MirrorNG/nunit-reporter@v1.0.11
if: always()
with:
path: TestResults/**/*.xml
reportTitle: Unit Test Results
access-token: ${{ secrets.GITHUB_TOKEN }}