Skip to content

feat(superdoc): ship IIFE CDN bundle with working vanilla example #947

feat(superdoc): ship IIFE CDN bundle with working vanilla example

feat(superdoc): ship IIFE CDN bundle with working vanilla example #947

Workflow file for this run

name: CI Demos
on:
pull_request:
paths:
- 'demos/**'
- 'packages/superdoc/**'
- 'packages/react/**'
- 'packages/super-editor/**'
- 'packages/layout-engine/**'
- 'shared/**'
- 'package.json'
merge_group:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build superdoc
run: pnpm build:superdoc
- name: Install Playwright
working-directory: demos/__tests__
run: npx playwright install chromium
- name: Cache workspace
uses: actions/cache/save@v4
with:
path: |
.
~/.cache/ms-playwright
key: demos-workspace-${{ github.sha }}
smoke-test:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
demo:
- cdn
- custom-mark
- custom-node
- docx-from-html
- docxtemplater
- fields
- grading-papers
# - html-editor # broken: imports unpublished superdoc/super-editor/style.css subpath
- linked-sections
- loading-from-json
- nextjs-ssr
- react
# - replace-content # broken: runtime nextSibling error in SuperDoc
- text-selection
- toolbar
- typescript
- vanilla
- vue
steps:
- name: Restore workspace
uses: actions/cache/restore@v4
with:
path: |
.
~/.cache/ms-playwright
key: demos-workspace-${{ github.sha }}
- name: Run smoke test
working-directory: demos/__tests__
run: DEMO=${{ matrix.demo }} npx playwright test
validate:
if: always()
needs: [smoke-test]
runs-on: ubuntu-latest
steps:
- name: Check results
run: |
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
exit 1
fi