mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
chore: Introduce Pest browser testing for the framework (#18857)
* chore: Introduce Pest browser testing for the framework * cs * fix tests * fix * Update tags-input.blade.php
This commit is contained in:
@@ -51,6 +51,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "pestphp/pest:${{ matrix.pest }}" "pestphp/pest-plugin-laravel:${{ matrix.pest-plugin-laravel }}" --no-interaction --no-update
|
||||
if [ "${{ matrix.php }}" = "8.2" ]; then composer remove pestphp/pest-plugin-browser --dev --no-interaction --no-update; fi
|
||||
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
|
||||
- name: Run PHPStan
|
||||
run: ./vendor/bin/phpstan
|
||||
|
||||
@@ -63,6 +63,18 @@ jobs:
|
||||
run: |
|
||||
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
|
||||
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
- name: Install npm dependencies
|
||||
run: npm ci
|
||||
- name: Install Playwright browsers
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
timeout_minutes: 10
|
||||
max_attempts: 3
|
||||
command: npx playwright install --with-deps
|
||||
- name: Wait for MySQL
|
||||
if: matrix.db == 'mysql'
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user