mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
chore(ci): enhance CI pipeline by removing unnecessary steps and adding Playwright browser caching
This commit is contained in:
parent
fe5d428457
commit
b2b37a0f8b
1 changed files with 10 additions and 8 deletions
18
.github/workflows/ci-pipeline.yml
vendored
18
.github/workflows/ci-pipeline.yml
vendored
|
@ -116,9 +116,6 @@ jobs:
|
||||||
needs: [check_changes, build]
|
needs: [check_changes, build]
|
||||||
if: ${{ needs.check_changes.outputs.exists == 'true' }}
|
if: ${{ needs.check_changes.outputs.exists == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: mcr.microsoft.com/playwright:v1.52.0-jammy
|
|
||||||
options: --user 1001
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -128,11 +125,6 @@ jobs:
|
||||||
name: build-dist
|
name: build-dist
|
||||||
path: dist/
|
path: dist/
|
||||||
|
|
||||||
- name: Install unzip (required for Bun setup)
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y unzip
|
|
||||||
|
|
||||||
- name: Restore Turborepo Cache
|
- name: Restore Turborepo Cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
@ -150,6 +142,16 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Cache Playwright Browsers
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.cache/ms-playwright
|
||||||
|
key: ${{ runner.os }}-playwright-${{ hashFiles('**/bun.lock') }}
|
||||||
|
restore-keys: ${{ runner.os }}-playwright-
|
||||||
|
|
||||||
|
- name: Install Playwright Browsers
|
||||||
|
run: bunx playwright install --with-deps
|
||||||
|
|
||||||
- name: Run Playwright Tests
|
- name: Run Playwright Tests
|
||||||
run: bunx turbo run test:playwright
|
run: bunx turbo run test:playwright
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue