cal.pub0.org/.github/actions/cache-playwright/action.yml

24 lines
742 B
YAML
Raw Normal View History

2023-02-20 22:53:04 +00:00
name: Install playwright binaries
description: "Install playwright, cache and restore if necessary"
inputs:
node_version:
required: true
description: "The node version used to run this"
runs:
using: "composite"
steps:
- name: Cache playwright binaries
uses: actions/cache@v2
id: playwright-cache
with:
path: |
~/Library/Caches/ms-playwright
~/.cache/ms-playwright
${{ github.workspace }}/node_modules/playwright
key: cache-playwright-${{ hashFiles('**/yarn.lock') }}
restore-keys: cache-playwright-
- name: Install playwright deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
shell: bash
run: yarn playwright install