feat: implement text alignment in doc cells #2174
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: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| shardIndex: [1, 2, 3, 4] | |
| shardTotal: [4] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22.x' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build site | |
| run: npm run build | |
| - name: Seed KV Stores | |
| run: npm run test:seed | |
| - name: Install Playwright | |
| run: npx playwright install chromium firefox --with-deps | |
| - name: Run Playwright tests | |
| run: npm run test -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --reporter=blob | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: screenshots-${{ matrix.shardIndex }} | |
| path: tests/images/*.png | |
| retention-days: 10 | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: blob-report-${{ matrix.shardIndex }} | |
| path: blob-report/ | |
| retention-days: 5 | |
| merge-reports: | |
| if: always() | |
| needs: [test] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22.x' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| # --- SCREENSHOT MERGING --- | |
| - name: Download all screenshots | |
| uses: actions/download-artifact@v4 | |
| with: | |
| pattern: screenshots-* | |
| path: combined-screenshots | |
| merge-multiple: true | |
| - name: Upload unified screenshots artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: all-screenshots | |
| path: combined-screenshots | |
| retention-days: 10 | |
| # --- HTML REPORT MERGING --- | |
| - name: Download all blob reports | |
| uses: actions/download-artifact@v4 | |
| with: | |
| pattern: blob-report-* | |
| path: all-blob-reports | |
| merge-multiple: true | |
| # Playwright compiles the blobs into a unified HTML report | |
| - name: Merge into HTML Report | |
| run: npx playwright merge-reports --reporter=html ./all-blob-reports | |
| - name: Upload unified HTML report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 10 |