Add playwright to workflow

This commit is contained in:
David Bomba 2023-10-10 15:41:53 +11:00
parent b19243a5db
commit 7fdac3a7ea

View File

@ -2,7 +2,6 @@ on:
push: push:
branches: branches:
- v5-develop - v5-develop
- v5-stable
pull_request: pull_request:
branches: branches:
- v5-develop - v5-develop
@ -13,12 +12,10 @@ jobs:
runs-on: ${{ matrix.operating-system }} runs-on: ${{ matrix.operating-system }}
strategy: strategy:
matrix: matrix:
operating-system: ['ubuntu-20.04', 'ubuntu-22.04'] operating-system: ['ubuntu-20.04']
php-versions: ['8.1','8.2'] php-versions: ['8.2']
phpunit-versions: ['latest'] phpunit-versions: ['latest']
ci_node_total: [ 8 ] laravel: [10.*]
ci_node_index: [ 0, 1, 2, 3, 4, 5, 6, 7]
laravel: [9.*]
dependency-version: [prefer-stable] dependency-version: [prefer-stable]
env: env:
@ -137,7 +134,7 @@ jobs:
mkdir -p ../public/tinymce_6.4.2/tinymce/js/ mkdir -p ../public/tinymce_6.4.2/tinymce/js/
cp -r node_modules/tinymce ../public/tinymce_6.4.2/tinymce/js/ cp -r node_modules/tinymce ../public/tinymce_6.4.2/tinymce/js/
cd .. cd ..
rm -rf ui
php artisan ninja:react php artisan ninja:react
cd ui
npx playwright install npx playwright install
npx playwright test --workers=1 npx playwright test --workers=1