refactor: change default value for aspect ration #55
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: Run tests | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "**/*.php" | |
- "composer.*" | |
- "phpunit.xml" | |
- ".github/workflows/tests.yml" | |
pull_request: | |
jobs: | |
php-tests: | |
runs-on: ubuntu-22.04 | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.1, 8.2, 8.3] | |
laravel: [10.*, 11.*] | |
include: | |
- laravel: 11.* | |
testbench: 9.* | |
- laravel: 10.* | |
testbench: 8.* | |
exclude: | |
- laravel: 11.* | |
php: 8.1 | |
name: PHP ${{ matrix.php }} | Laravel - ${{ matrix.laravel }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare PHP test environment | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Cache composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Install dependencies | |
run: | | |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update | |
composer update --prefer-dist --no-interaction | |
- name: Running tests | |
run: composer test |