initialize invervention imagemanager with gd driver by default #93
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: Unit Tests | |
on: [push, pull_request] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 10 | |
matrix: | |
laravel-version: ['^11.1'] | |
preference: ['stable'] | |
php-version: ['8.2', '8.3'] | |
name: Laravel ${{ matrix.laravel-version }} (${{ matrix.preference }}) on PHP ${{ matrix.php-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, xdebug | |
coverage: xdebug | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install dependencies | |
run: | | |
composer require --no-update --no-interaction "illuminate/support:${{ matrix.laravel-version }}" | |
composer update --prefer-${{ matrix.preference }} --no-interaction --prefer-dist --no-suggest --no-scripts --optimize-autoloader | |
- name: Lint composer.json | |
run: composer validate | |
- name: Run Tests | |
run: composer test:ci | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} #required | |
file: ./build/coverage.xml #optional | |
flags: unittests #optional | |
name: codecov-umbrella #optional | |
fail_ci_if_error: true #optional (default = false) |