Skip to content

Commit

Permalink
update actions with playwright binary caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ethangardner committed Dec 20, 2024
1 parent 61ac0d3 commit b1b2552
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 79 deletions.
66 changes: 0 additions & 66 deletions .github/workflows/_performance-budget.yml

This file was deleted.

18 changes: 16 additions & 2 deletions .github/workflows/_validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Validate

on:
workflow_call:
inputs:
playwright_version:
description: Installed playwright version
required: true
default: "1.48.1"
type: string

jobs:
run-tests:
Expand Down Expand Up @@ -44,8 +50,16 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Install playwright
run: pnpm dlx [email protected] install --with-deps
- name: Cache Playwright binaries
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ inputs.playwright_version }}

- name: Install Playwright
run: pnpm dlx playwright@${{ inputs.playwright_version }} install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'

# While most of the test suite is self-contained, the tests for the demo
# servers require a prod build of @atj/server.
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/monitor.yml

This file was deleted.

0 comments on commit b1b2552

Please sign in to comment.