Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Separate e2e tests to run in separate actions to speed up execution (#233)
Leendert de Borst9180d600a6de
diff --git a/.github/workflows/dotnet-e2e-admin-tests.yml b/.github/workflows/dotnet-e2e-admin-tests.ymlnew file mode 100644index 000000000..190d4ef8c--- /dev/null+++ b/.github/workflows/dotnet-e2e-admin-tests.yml@@ -0,0 +1,42 @@+name: .NET E2E Admin Tests (Playwright)++on:+ push:+ branches: [ "main" ]+ pull_request:+ branches: [ "main" ]++jobs:+ admin-tests:+ timeout-minutes: 60+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4++ - name: Setup .NET+ uses: actions/setup-dotnet@v4+ with:+ dotnet-version: 8.0.304++ - name: Install dependencies+ run: dotnet workload install wasm-tools++ - name: Build+ run: dotnet build++ - name: Ensure browsers are installed+ run: pwsh src/Tests/AliasVault.E2ETests/bin/Debug/net8.0/playwright.ps1 install --with-deps++ - name: Run AdminTests with retry+ uses: nick-fields/retry@v3+ with:+ timeout_minutes: 60+ max_attempts: 3+ command: dotnet test src/Tests/AliasVault.E2ETests --no-build --verbosity normal --filter "Category=AdminTests"++ - name: Upload Test Results+ if: always()+ uses: actions/upload-artifact@v3+ with:+ name: admin-test-results+ path: TestResults-Admin.xmldiff --git a/.github/workflows/dotnet-e2e-client-tests.yml b/.github/workflows/dotnet-e2e-client-tests.ymlnew file mode 100644index 000000000..13b0d8ac7--- /dev/null+++ b/.github/workflows/dotnet-e2e-client-tests.yml@@ -0,0 +1,42 @@+name: .NET E2E Client Tests (Playwright)++on:+ push:+ branches: [ "main" ]+ pull_request:+ branches: [ "main" ]++jobs:+ client-tests:+ timeout-minutes: 60+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4++ - name: Setup .NET+ uses: actions/setup-dotnet@v4+ with:+ dotnet-version: 8.0.304++ - name: Install dependencies+ run: dotnet workload install wasm-tools++ - name: Build+ run: dotnet build++ - name: Ensure browsers are installed+ run: pwsh src/Tests/AliasVault.E2ETests/bin/Debug/net8.0/playwright.ps1 install --with-deps++ - name: Run ClientTests with retry+ uses: nick-fields/retry@v3+ with:+ timeout_minutes: 60+ max_attempts: 3+ command: dotnet test src/Tests/AliasVault.E2ETests --no-build --verbosity normal --filter "Category=ClientTests"++ - name: Upload Test Results+ if: always()+ uses: actions/upload-artifact@v3+ with:+ name: client-test-results+ path: TestResults-Client.xmldiff --git a/.github/workflows/dotnet-e2e-misc-tests.yml b/.github/workflows/dotnet-e2e-misc-tests.ymlnew file mode 100644index 000000000..310323cb3--- /dev/null+++ b/.github/workflows/dotnet-e2e-misc-tests.yml@@ -0,0 +1,42 @@+name: .NET E2E Misc Tests (Playwright)++on:+ push:+ branches: [ "main" ]+ pull_request:+ branches: [ "main" ]++jobs:+ misc-tests:+ timeout-minutes: 60+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4++ - name: Setup .NET+ uses: actions/setup-dotnet@v4+ with:+ dotnet-version: 8.0.304++ - name: Install dependencies+ run: dotnet workload install wasm-tools++ - name: Build+ run: dotnet build++ - name: Ensure browsers are installed+ run: pwsh src/Tests/AliasVault.E2ETests/bin/Debug/net8.0/playwright.ps1 install --with-deps++ - name: Run remaining tests with retry+ uses: nick-fields/retry@v3+ with:+ timeout_minutes: 60+ max_attempts: 3+ command: dotnet test src/Tests/AliasVault.E2ETests --no-build --verbosity normal --filter "Category!=AdminTests&Category!=ClientTests"++ - name: Upload Test Results+ if: always()+ uses: actions/upload-artifact@v3+ with:+ name: misc-test-results+ path: TestResults-Misc.xmldiff --git a/.github/workflows/dotnet-e2e-tests.yml b/.github/workflows/dotnet-e2e-tests.ymldeleted file mode 100644index 4a4dd4088..000000000--- a/.github/workflows/dotnet-e2e-tests.yml+++ /dev/null@@ -1,52 +0,0 @@-# This workflow will build a .NET project-# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net--name: .NET E2E Tests (Playwright)--on:- push:- branches: [ "main" ]- pull_request:- branches: [ "main" ]--jobs:- test:- timeout-minutes: 60- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v4-- - name: Setup .NET- uses: actions/setup-dotnet@v4- with:- dotnet-version: 8.0.304-- - name: Install dependencies- run: dotnet workload install wasm-tools-- - name: Build- run: dotnet build-- - name: Ensure browsers are installed- run: pwsh src/Tests/AliasVault.E2ETests/bin/Debug/net8.0/playwright.ps1 install --with-deps-- - name: Run ClientTests with retry- uses: nick-fields/retry@v3- with:- timeout_minutes: 60- max_attempts: 3- command: dotnet test src/Tests/AliasVault.E2ETests --no-build --verbosity normal --filter "Category=ClientTests"-- - name: Run AdminTests with retry- uses: nick-fields/retry@v3- with:- timeout_minutes: 60- max_attempts: 3- command: dotnet test src/Tests/AliasVault.E2ETests --no-build --verbosity normal --filter "Category=AdminTests"-- - name: Run remaining tests with retry- uses: nick-fields/retry@v3- with:- timeout_minutes: 60- max_attempts: 3- command: dotnet test src/Tests/AliasVault.E2ETests --no-build --verbosity normal --filter "Category!=AdminTests&Category!=ClientTests"