hotfix(ci): excluir PHP 8.2 + Laravel 13 y actualizar checkout a v5 #6
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: Tests | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| phpunit: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ["8.2", "8.3"] | |
| laravel: ["12", "13"] | |
| exclude: | |
| - php: "8.2" | |
| laravel: "13" | |
| name: PHP ${{ matrix.php }} · Laravel ${{ matrix.laravel }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: none | |
| - name: Validate composer.json | |
| run: composer validate --strict | |
| - name: Install dependencies (Laravel 12) | |
| if: matrix.laravel == '12' | |
| run: > | |
| composer update --prefer-dist --no-progress --no-interaction --with-all-dependencies | |
| --with illuminate/support:^12.0 | |
| --with illuminate/http:^12.0 | |
| --with illuminate/auth:^12.0 | |
| --with orchestra/testbench:^10.0 | |
| --with phpunit/phpunit:^11.0 | |
| - name: Install dependencies (Laravel 13) | |
| if: matrix.laravel == '13' | |
| run: > | |
| composer update --prefer-dist --no-progress --no-interaction --with-all-dependencies | |
| --with illuminate/support:^13.0 | |
| --with illuminate/http:^13.0 | |
| --with illuminate/auth:^13.0 | |
| --with orchestra/testbench:^11.0 | |
| --with phpunit/phpunit:^12.0 | |
| - name: Run test suite | |
| run: composer test |