* update * Add cache-db action to e2e workflow * fix: remove cache-db from prepare job (requires Postgres service) The prepare job doesn't have a Postgres service container, so cache-db was failing with 'connection refused' when trying to run psql. cache-db should only run in the e2e shards which have the Postgres service. Co-Authored-By: [email protected] <[email protected]> * update * Update e2e.yml * Add newline at end of e2e.yml file * fix * Fix indentation in e2e.yml for retention-days --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
23 lines
856 B
YAML
23 lines
856 B
YAML
name: Install playwright binaries
|
|
description: "Install playwright, cache and restore if necessary"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Get installed Playwright version
|
|
shell: bash
|
|
id: playwright-version
|
|
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package.json').devDependencies['@playwright/test'])")" >> $GITHUB_ENV
|
|
- name: Cache playwright binaries
|
|
id: playwright-cache
|
|
uses: buildjet/cache@v4
|
|
with:
|
|
path: |
|
|
~/Library/Caches/ms-playwright
|
|
~/.cache/ms-playwright
|
|
${{ github.workspace }}/node_modules/playwright
|
|
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
|
|
- name: Yarn playwright install
|
|
if: steps.playwright-cache.outputs.cache-hit != 'true'
|
|
shell: bash
|
|
run: yarn playwright install --with-deps
|