Merge/main 20260515 into beta #3040
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: Playwright Tests | |
| on: | |
| pull_request: | |
| branches: [main, master, beta] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| playwright-tests: | |
| timeout-minutes: 120 | |
| runs-on: self-hosted | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [20] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.2.23 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| # - name: Install Playwright browsers | |
| # run: bun x playwright install-deps chromium | |
| - name: Run Playwright tests | |
| env: | |
| CI: true | |
| PLAYWRIGHT_HTML_OPEN: never | |
| run: | | |
| export NODE_OPTIONS="--max_old_space_size=10192" | |
| bun x nyc --reporter=html npx playwright test --max-failures=10 --retries=1 | |
| - name: Upload Playwright report and test results | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-results-${{ github.sha }} | |
| if-no-files-found: warn | |
| path: | | |
| tests/playwright-report/ | |
| tests/test-results/ | |
| retention-days: 7 | |
| - name: create the coverage report | |
| run: | | |
| bun nyc report --reporter=lcov --reporter=text | |
| - name: Upload the coverage report to GitHub Actions Artifacts | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report-pr | |
| path: coverage | |
| retention-days: 7 |