Update README.md #4
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: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - php: '8.1' | |
| laravel: '^10.0' | |
| testbench: '^8.0' | |
| - php: '8.2' | |
| laravel: '^11.0' | |
| testbench: '^9.0' | |
| - php: '8.2' | |
| laravel: '^12.0' | |
| testbench: '^10.0' | |
| - php: '8.3' | |
| laravel: '^13.0' | |
| testbench: '^11.0' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: none | |
| tools: composer:v2 | |
| - name: Validate composer.json | |
| run: composer validate --strict | |
| - name: Remove quality-only tools for matrix install | |
| run: composer remove --dev --no-update --no-interaction larastan/larastan phpstan/phpstan laravel/pint | |
| - name: Install dependency matrix | |
| run: | | |
| composer require --no-interaction --no-update \ | |
| "illuminate/database:${{ matrix.laravel }}" \ | |
| "illuminate/http:${{ matrix.laravel }}" \ | |
| "illuminate/pagination:${{ matrix.laravel }}" \ | |
| "illuminate/support:${{ matrix.laravel }}" \ | |
| "orchestra/testbench:${{ matrix.testbench }}" | |
| - name: Install dependencies | |
| run: | | |
| composer config audit.block-insecure false | |
| composer update --prefer-dist --no-interaction | |
| - name: Lint PHP files | |
| run: find src tests -name '*.php' -print0 | xargs -0 -n1 php -l | |
| - name: Run test suite | |
| run: composer test |