sprint22o: S22o-POC MOG2Detector (background subtraction) — rýchla al… #100
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [watchforge-redesign, main] | |
| pull_request: | |
| branches: [watchforge-redesign, main] | |
| jobs: | |
| build-and-test: | |
| name: Build + .NET tests (S14-1) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET 10 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore + Build (0 errors) | |
| # Pozn.: -warnaserror NEpoužívame — TUnit analyzátor (TUnitAssertions0005, | |
| # TUnit0018) hlási štýlové warningy, ktoré nie sú chyby kompilácie. | |
| run: | | |
| dotnet build WatchForge.slnx --configuration Release | |
| - name: Run .NET tests (TUnit) | |
| run: | | |
| dotnet test WatchForge.slnx --configuration Release --no-build \ | |
| --filter "FullyQualifiedName!~WatchForge.Api.Tests" \ | |
| --logger "console;verbosity=minimal" | |
| - name: Run API tests (WebApplicationFactory, sekvenčne) | |
| run: | | |
| dotnet test tests/applications/server/WatchForge.Api.Tests/WatchForge.Api.Tests.csproj \ | |
| --configuration Release --no-build \ | |
| --logger "console;verbosity=minimal" | |
| ui-tests: | |
| name: UI unit tests (S14-2) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install + UI tests | |
| working-directory: applications/web/WatchForge.UI | |
| run: | | |
| bun install --frozen-lockfile | |
| bun run test | |
| e2e-web: | |
| name: Playwright E2E (S14-2) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET 10 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Setup bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Build .NET (API + e2e-seed) | |
| run: dotnet build WatchForge.slnx --configuration Release | |
| - name: Install UI deps | |
| working-directory: applications/web/WatchForge.UI | |
| run: bun install --frozen-lockfile | |
| - name: Install Playwright Chromium | |
| working-directory: applications/web/WatchForge.UI | |
| run: bunx playwright install --with-deps chromium | |
| - name: Run Playwright E2E | |
| working-directory: applications/web/WatchForge.UI | |
| run: bunx playwright test | |
| - name: Upload Playwright report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report | |
| path: applications/web/WatchForge.UI/test-results/ | |
| retention-days: 7 |