Migrate to pnpm #394
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ['vue', '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 chromium | |
- 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 |