Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ jobs:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm --filter @missing-elements/h5p-offline-player exec playwright install --with-deps chromium
# Without --with-deps: the runner image ships Chrome and Firefox, so the libraries they link
# against are there, and what apt would add (fonts, Xvfb, FFmpeg's codecs) a headless suite that
# decodes no video does not use. Some runners reach Ubuntu's mirror at 40 kB/s, where that took
# up to 20 minutes (#73).
- run: pnpm --filter @missing-elements/h5p-offline-player exec playwright install chromium
- run: pnpm typecheck
- run: pnpm test
- run: pnpm build
Expand All @@ -41,6 +45,11 @@ jobs:
fail-fast: false
matrix:
browser: [firefox, webkit]
# WebKit needs its system packages, GStreamer among them. Firefox, like Chromium above, has its
# libraries from the runner image.
include:
- browser: webkit
deps: --with-deps
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v6
Expand All @@ -49,7 +58,7 @@ jobs:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm --filter @missing-elements/h5p-offline-player exec playwright install --with-deps ${{ matrix.browser }}
- run: pnpm --filter @missing-elements/h5p-offline-player exec playwright install ${{ matrix.deps }} ${{ matrix.browser }}
- run: pnpm test:engine
env:
H5P_TEST_BROWSER: ${{ matrix.browser }}
Loading