Skip to content

Undocumented - Filter Matches via Playlist #1934

Undocumented - Filter Matches via Playlist

Undocumented - Filter Matches via Playlist #1934

Workflow file for this run

name: Laravel
on:
pull_request:
branches:
- '**'
push:
branches-ignore:
- '**'
tags-ignore:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
laravel-tests:
runs-on: ubuntu-latest
services:
maria:
image: mariadb:10.6
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: leafapp_test
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v4
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: xdebug
- uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'npm'
- name: Install Composer Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Install NPM Dependencies
run: npm ci
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Asset Packaging
run: npm run build
- name: Asset Storage Link
run: php artisan storage:link
- name: PHPCS
run: vendor/bin/pint --test
- name: Execute tests (With Coverage) via PHPUnit
env:
DB_PORT: ${{ job.services.maria.ports[3306] }}
run: php artisan test --without-tty --coverage --min=100 --coverage-html=output
- name: PHPStan
run: vendor/bin/phpstan analyse --xdebug
- uses: actions/upload-artifact@v4
if: failure()
with:
name: coverage-html
path: output
if-no-files-found: ignore