Skip to content

SD-2527 - feat: implement new types of ordered lists #2625

SD-2527 - feat: implement new types of ordered lists

SD-2527 - feat: implement new types of ordered lists #2625

Workflow file for this run

name: Behavior Tests
permissions:
contents: read
on:
pull_request:
branches: [main, stable]
merge_group:
workflow_dispatch:
concurrency:
group: ci-behavior-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# PRs run chromium only for fast feedback. merge_group and workflow_dispatch
# run the full 3-browser matrix before anything lands on main.
browser: ${{ fromJSON(github.event_name == 'pull_request' && '["chromium"]' || '["chromium", "firefox", "webkit"]') }}
shard: [1, 2, 3, 4]
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Build SuperDoc
run: pnpm build
- name: Get Playwright version
id: pw
run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
working-directory: tests/behavior
- name: Cache Playwright browsers
uses: actions/cache@v5
id: pw-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.pw.outputs.version }}-${{ matrix.browser }}
- name: Install Playwright browser
if: steps.pw-cache.outputs.cache-hit != 'true'
run: pnpm exec playwright install --with-deps ${{ matrix.browser }}
working-directory: tests/behavior
- name: Install Playwright system deps
if: steps.pw-cache.outputs.cache-hit == 'true'
run: pnpm exec playwright install-deps ${{ matrix.browser }}
working-directory: tests/behavior
- name: Run behavior tests (${{ matrix.browser }} shard ${{ matrix.shard }}/4)
run: pnpm exec playwright test --project=${{ matrix.browser }} --shard=${{ matrix.shard }}/4
working-directory: tests/behavior
validate:
name: Behavior Tests / validate
if: always()
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Check results
run: |
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}" == "true" ]]; then
echo "One or more required jobs did not succeed."
exit 1
fi