Resolve Sentry noise from health probes and stabilize usage metrics tests #547
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: Test Web Frontend Windows | |
| on: | |
| - push | |
| - pull_request | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-web-frontend-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| working-directory: web-frontend | |
| run: bun install | |
| - name: Run tests | |
| working-directory: web-frontend | |
| run: bun run test -- --testTimeout=15000 | |
| - name: Run tests with coverage | |
| working-directory: web-frontend | |
| run: bun run test:coverage -- --testTimeout=15000 | |
| - name: Upload frontend coverage to Codecov | |
| if: github.event_name != 'pull_request' | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./web-frontend/coverage/lcov.info | |
| flags: web-frontend-windows | |
| name: web-frontend-vitest-windows | |
| test-web-frontend-e2e-windows: | |
| runs-on: windows-latest | |
| needs: test-web-frontend-windows | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| working-directory: web-frontend | |
| run: bun install | |
| - name: Install Playwright Chromium | |
| working-directory: web-frontend | |
| run: bunx playwright install chromium | |
| - name: Run Playwright tests with coverage | |
| working-directory: web-frontend | |
| run: | | |
| Remove-Item -Recurse -Force .e2e-coverage, coverage-e2e -ErrorAction SilentlyContinue | |
| $env:E2E_COVERAGE = '1' | |
| bunx playwright test --workers=4 | |
| - name: Generate Playwright coverage report | |
| working-directory: web-frontend | |
| run: bun run coverage:e2e:report | |
| - name: Upload Playwright coverage to Codecov | |
| if: github.event_name != 'pull_request' | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./web-frontend/coverage-e2e/lcov.info | |
| flags: web-frontend-e2e-windows | |
| name: web-frontend-playwright-windows | |
| - name: Upload Playwright report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report-windows | |
| path: | | |
| web-frontend/playwright-report | |
| web-frontend/test-results | |
| if-no-files-found: ignore |