Skip to content

Migrate to pnpm

Migrate to pnpm #391

Workflow file for this run

name: Playwright Tests
on: [push, pull_request]
jobs:
test:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
timeout-minutes: 15
runs-on: ubuntu-20.04
strategy:
matrix:
adapter: ['vue3', 'react', 'svelte']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 21.7.3
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build Inertia
run: pnpm -r --filter ./packages/core --filter ./packages/${{ matrix.adapter }} build
- name: Install Playwright Browsers
run: pnpm playwright install --with-deps
- name: Run Playwright Tests
run: pnpm test:${{ matrix.adapter }}
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: packages/${{ matrix.adapter }}/playwright-report/
retention-days: 30