chore(deps-dev): bump phpunit/phpunit from 13.3.1 to 13.3.2 #3166
Workflow file for this run
This file contains hidden or 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: Laravel | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' | |
| push: | |
| branches-ignore: | |
| - '**' | |
| tags-ignore: | |
| - '**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| linting-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - 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.5' | |
| - name: Install Composer Dependencies | |
| run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist | |
| - name: Generate key | |
| run: php artisan key:generate | |
| - name: Directory Permissions | |
| run: chmod -R 777 storage bootstrap/cache | |
| - name: PHPCS | |
| run: vendor/bin/pint --parallel --test | |
| - name: Check PSR Violations | |
| run: composer dump-autoload --strict-psr | |
| - name: PHPStan | |
| run: vendor/bin/phpstan analyse | |
| laravel-tests: | |
| runs-on: ubuntu-latest | |
| services: | |
| maria: | |
| image: mariadb:11.4 | |
| env: | |
| MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes | |
| MARIADB_DATABASE: leaf_test | |
| ports: | |
| - 3306 | |
| options: --health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - 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.5' | |
| coverage: xdebug | |
| - uses: actions/setup-node@v7.0.0 | |
| with: | |
| node-version: '22' | |
| 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: Execute tests (With Coverage) via PHPUnit | |
| env: | |
| DB_PORT: ${{ job.services.maria.ports[3306] }} | |
| DB_CONNECTION: mysql | |
| run: php artisan test --without-tty --coverage --min=100 --coverage-html=output | |
| - uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: coverage-html | |
| path: output | |
| if-no-files-found: ignore |