test-webui.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: WebUi Tests
  2. on:
  3. pull_request:
  4. workflow_dispatch:
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Checkout
  10. uses: actions/checkout@v3
  11. - name: Setup .NET
  12. uses: actions/setup-dotnet@v3
  13. with:
  14. dotnet-version: 10.0.x
  15. # Restore all projects
  16. - name: Restore
  17. run: dotnet restore
  18. # Build solution
  19. - name: Build
  20. run: dotnet build --no-restore --configuration Release
  21. # Install Playwright CLI
  22. - name: Install Playwright CLI
  23. run: dotnet tool install --global Microsoft.Playwright.CLI
  24. # Install browser binaries + Linux deps
  25. - name: Install Playwright Browsers
  26. run: |
  27. playwright install --with-deps
  28. # Build Docker image used by Testcontainers
  29. - name: Build Docker Image
  30. run: |
  31. docker build \
  32. -t rackpeek:ci \
  33. -f RackPeek.Web/Dockerfile \
  34. .
  35. # Run E2E tests
  36. - name: Run E2E Tests
  37. run: dotnet test Tests.E2e --configuration Release --verbosity normal