mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
feat: add caching for Playwright dependencies in CI workflow
This commit is contained in:
@@ -115,10 +115,20 @@ jobs:
|
|||||||
|
|
||||||
- uses: oven-sh/setup-bun@v2
|
- uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
|
|
||||||
|
- name: Cache Playwright
|
||||||
|
id: playwright-cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.cache/ms-playwright
|
||||||
|
key: ${{ runner.os }}-playwright-${{ hashFiles('frontend/bun.lock') }}
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
(cd frontend && bun install) &
|
(cd frontend && bun install)
|
||||||
(cd frontend && bun x playwright install --with-deps)
|
if [ "${{ steps.playwright-cache.outputs.cache-hit }}" != "true" ]; then
|
||||||
|
(cd frontend && bun x playwright install --with-deps)
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Run E2E
|
- name: Run E2E
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user