page url should not include the host #58
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: ['vue3', 'react', 'svelte'] | |
env: | |
PACKAGE: ${{ matrix.adapter }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 21.7.3 | |
- name: Build Inertia | |
run: | | |
rm package-lock.json | |
npm install | |
cd packages/core | |
npm run build | |
- name: Build Adapter | |
run: | | |
cd packages/${{ matrix.adapter }} | |
npm run build | |
- name: Install Test Dependencies | |
run: | | |
cd packages/${{ matrix.adapter }}/test-app | |
npm install | |
- name: Local-link @inertiajs/core | |
run: cd packages/core && npm link | |
- name: Local-link @inertiajs/${{ matrix.adapter }} | |
run: cd packages/${{ matrix.adapter }} && npm link | |
- name: Install Playwright Browsers | |
run: cd packages/${{ matrix.adapter }} && npx playwright install --with-deps | |
- name: Install Playwright Test Dependencies | |
run: cd tests/app && npm install | |
- name: Run Playwright Tests | |
run: cd tests && npx playwright test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: packages/${{ matrix.adapter }}/playwright-report/ | |
retention-days: 30 |