chore(ci): enhance CI pipeline by removing unnecessary steps and adding Playwright browser caching

This commit is contained in:
taroj1205 2025-06-22 17:19:14 +12:00
parent fe5d428457
commit b2b37a0f8b
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7

View file

@ -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