Merge pull request #6598 from duplicati/feature/add-integration-tests
Added new integration tests on the API level
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
name: Tests
|
||||
permissions:
|
||||
contents: read
|
||||
issues: none
|
||||
pull-requests: none
|
||||
|
||||
on: [pull_request, workflow_dispatch]
|
||||
|
||||
@@ -27,7 +31,33 @@ jobs:
|
||||
run: dotnet build --no-restore Duplicati.sln
|
||||
|
||||
- name: Run unit tests
|
||||
run: dotnet test --no-build --verbosity minimal Duplicati.sln
|
||||
run: dotnet test --no-build --verbosity minimal --filter "Category!=Integration" Duplicati.sln
|
||||
|
||||
integration_tests:
|
||||
name: Integration tests
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
|
||||
steps:
|
||||
- name: Set up .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 8.x
|
||||
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Restore NuGet dependencies
|
||||
run: dotnet restore Duplicati.sln
|
||||
|
||||
- name: Build Duplicati
|
||||
run: dotnet build --no-restore Duplicati.sln
|
||||
|
||||
- name: Run integration tests
|
||||
run: dotnet test --no-build --verbosity minimal --filter "Category=Integration" Duplicati.sln
|
||||
|
||||
# Disabled, as a new test needs to be written for the new UI
|
||||
# selenium:
|
||||
|
||||
Reference in New Issue
Block a user