mirror of
https://github.com/gotson/komga.git
synced 2026-04-20 14:04:08 +02:00
20 lines
665 B
YAML
20 lines
665 B
YAML
name: "Setup Playwright"
|
|
description: "Setup Playwright with caching, using npm (should already be installed)"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Extract Playwright version
|
|
id: playwright-version
|
|
shell: bash
|
|
run: echo "PLAYWRIGHT_VERSION=$(jq -r '.devDependencies.playwright' package.json)" >> $GITHUB_ENV
|
|
|
|
- name: Cache Playwright
|
|
id: playwright-cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.cache/ms-playwright
|
|
key: playwright-${{ runner.os }}-${{ env.PLAYWRIGHT_VERSION }}
|
|
|
|
- name: Install Playwright dependencies
|
|
shell: bash
|
|
run: npx playwright install --with-deps --only-shell
|