fix: table background/width and marker color fixes #1807
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: PR Validation [auto] | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: [main, 'release/**'] | |
| concurrency: | |
| group: pr-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate-commits: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # Pinned commit hash for @v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| - name: Install canvas system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| libcairo2-dev \ | |
| libpango1.0-dev \ | |
| libjpeg-dev \ | |
| libgif-dev \ | |
| librsvg2-dev \ | |
| libpixman-1-dev | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Validate commits | |
| run: | | |
| BASE=$(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}) | |
| pnpx commitlint \ | |
| --from "$BASE" \ | |
| --to ${{ github.event.pull_request.head.sha }} | |
| run-unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # Pinned commit hash for @v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| - name: Install canvas system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| libcairo2-dev \ | |
| libpango1.0-dev \ | |
| libjpeg-dev \ | |
| libgif-dev \ | |
| librsvg2-dev \ | |
| libpixman-1-dev | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build SuperDoc | |
| run: pnpm run build | |
| - name: Validate command types | |
| run: node scripts/validate-command-types.mjs | |
| - name: Run unit tests | |
| run: pnpm test | |
| run-e2e-tests: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: node:20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # Pinned commit hash for @v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| - name: Install canvas system dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y \ | |
| build-essential \ | |
| libcairo2-dev \ | |
| libpango1.0-dev \ | |
| libjpeg-dev \ | |
| libgif-dev \ | |
| librsvg2-dev \ | |
| libpixman-1-dev | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build SuperDoc | |
| run: | | |
| pnpm run build | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@v4 | |
| id: playwright-cache | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-${{ hashFiles('e2e-tests/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-playwright- | |
| - name: Install Playwright browsers | |
| run: | | |
| cd e2e-tests | |
| if [ "${{ steps.playwright-cache.outputs.cache-hit }}" != "true" ]; then | |
| pnpx playwright install --with-deps | |
| else | |
| pnpx playwright install-deps | |
| fi | |
| - name: Run e2e tests | |
| id: run-e2e-tests | |
| if: always() | |
| run: cd e2e-tests && pnpm test | |
| - name: Upload e2e test results | |
| id: upload_artifact | |
| if: always() && steps.run-e2e-tests.outcome == 'failure' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: e2e-tests | |
| path: e2e-tests/test-results | |
| retention-days: 15 | |
| run-examples-visual-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # Pinned commit hash for @v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| - name: Get Playwright version | |
| id: playwright-version | |
| run: | | |
| cd examples/tests | |
| echo "version=$(pnpm ls @playwright/test --json | jq -r '.dependencies["@playwright/test"].version')" >> $GITHUB_OUTPUT | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@v4 | |
| id: playwright-cache | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Pack SuperDoc | |
| run: pnpm run --filter superdoc pack | |
| - name: Setup visual tests | |
| run: | | |
| cd examples/tests | |
| pnpm install | |
| pnpm install -g http-server | |
| - name: Install Playwright browsers | |
| if: steps.playwright-cache.outputs.cache-hit != 'true' | |
| run: | | |
| cd examples/tests | |
| pnpx playwright install --with-deps chromium | |
| - name: Install only system deps if cache hit | |
| if: steps.playwright-cache.outputs.cache-hit == 'true' | |
| run: | | |
| cd examples/tests | |
| pnpx playwright install-deps chromium | |
| - name: Run visual tests | |
| id: run-visual-tests | |
| run: | | |
| cd examples/tests | |
| pnpm test | |
| - name: Upload visual test results | |
| id: upload_artifact | |
| if: always() && steps.run-visual-tests.outcome == 'failure' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: visual-tests | |
| path: examples/tests/test-results | |
| retention-days: 15 |