-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
987 changed files
with
23,145 additions
and
8,477 deletions.
There are no files selected for viewing
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Install yarn dependencies" | ||
description: "Installs yarn dependencies and caches them." | ||
|
||
outputs: | ||
cache_key: | ||
description: "The dependency cache key" | ||
value: ${{ steps.compute_lockfile_hash.outputs.hash }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Compute dependency cache key | ||
id: compute_lockfile_hash | ||
run: node ./scripts/dependency-hash-key.js >> "$GITHUB_OUTPUT" | ||
shell: bash | ||
|
||
- name: Check dependency cache | ||
uses: actions/cache@v4 | ||
id: cache_dependencies | ||
with: | ||
path: ${{ env.CACHED_DEPENDENCY_PATHS }} | ||
key: ${{ steps.compute_lockfile_hash.outputs.hash }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache_dependencies.outputs.cache-hit != 'true' | ||
run: yarn install --ignore-engines --frozen-lockfile | ||
shell: bash |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "Install Playwright dependencies" | ||
description: "Installs Playwright dependencies and caches them." | ||
inputs: | ||
browsers: | ||
description: 'What browsers to install.' | ||
default: 'chromium webkit firefox' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get Playwright version | ||
id: playwright-version | ||
run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Restore cached playwright binaries | ||
uses: actions/cache/restore@v4 | ||
id: playwright-cache | ||
with: | ||
path: | | ||
~/.cache/ms-playwright | ||
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} | ||
|
||
# We always install all browsers, if uncached | ||
- name: Install Playwright dependencies (uncached) | ||
run: npx playwright install chromium webkit firefox --with-deps | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
shell: bash | ||
|
||
- name: Install Playwright system dependencies only (cached) | ||
run: npx playwright install-deps ${{ inputs.browsers || 'chromium webkit firefox' }} | ||
if: steps.playwright-cache.outputs.cache-hit == 'true' | ||
shell: bash | ||
|
||
# Only store cache on develop branch | ||
- name: Store cached playwright binaries | ||
uses: actions/cache/save@v4 | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/develop' | ||
with: | ||
path: | | ||
~/.cache/ms-playwright | ||
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} |
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
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
Oops, something went wrong.