-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update actions with playwright binary caching
- Loading branch information
1 parent
61ac0d3
commit b1b2552
Showing
3 changed files
with
16 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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. | ||
|
This file was deleted.
Oops, something went wrong.