Skip to content

Host the H5P build page and the library bundles at /h5p/ #8

Host the H5P build page and the library bundles at /h5p/

Host the H5P build page and the library bundles at /h5p/ #8

Workflow file for this run

# Builds pull requests so a broken build shows up before merging.
# Deploys stay in pages.yml, which runs on pushes to main.
name: Build
on:
pull_request:
permissions:
contents: read
concurrency:
group: build-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
# The H5P build page and the bundles in a real browser, against the built site.
- run: pnpm exec playwright install --with-deps chromium
- run: pnpm e2e
- if: failure()
uses: actions/upload-artifact@v7
with:
name: playwright-traces
path: test-results
if-no-files-found: ignore