Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/actions/setup-cmux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ runs:
shell: bash
run: echo "version=$(bun --version)" >> $GITHUB_OUTPUT

- name: Cache Homebrew downloads (macOS)
if: runner.os == 'macOS'
uses: actions/cache@v4
with:
path: |
~/Library/Caches/Homebrew/downloads
~/Library/Caches/Homebrew/Cask
key: ${{ runner.os }}-${{ runner.arch }}-homebrew-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-homebrew-

- name: Cache node_modules
uses: actions/cache@v4
with:
Expand Down
23 changes: 23 additions & 0 deletions .github/actions/setup-playwright/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Setup Playwright"
description: "Install Playwright browsers with caching"
runs:
using: "composite"
steps:
- name: Get Playwright version
id: playwright-version
shell: bash
run: echo "version=$(bun x playwright --version | cut -d' ' -f2)" >> $GITHUB_OUTPUT

- name: Cache Playwright browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}
restore-keys: |
${{ runner.os }}-playwright-

- name: Install Playwright browsers and dependencies
if: steps.playwright-cache.outputs.cache-hit != 'true'
shell: bash
run: bun x playwright install --with-deps
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ jobs:

- uses: ./.github/actions/setup-cmux

- name: Install Playwright browsers
run: bun x playwright install --with-deps
- uses: ./.github/actions/setup-playwright

- name: Build Storybook
run: make storybook-build
Expand Down Expand Up @@ -154,11 +153,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y xvfb

- name: Install Playwright runtime dependencies
run: bun x playwright install-deps

- name: Install Playwright browsers
run: bun x playwright install --with-deps
- uses: ./.github/actions/setup-playwright

- name: Run e2e tests
run: xvfb-run -a make test-e2e
Expand Down