Enhance FieldAssertions fields resolve, add batch [Has|Missing]Fields, add NovaRequest and resource has parameters + fix deprecation
#25
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: Linting and Tests | |
| on: | |
| pull_request: | |
| branches: [main, release/*] | |
| paths-ignore: | |
| - "**/*.md" | |
| - "*.md" | |
| - "**/*.json" | |
| push: | |
| branches: [main] | |
| jobs: | |
| laravel-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| php: [ '8.2', '8.3', '8.4', '8.5'] | |
| laravel: [ '11.*', '12.*', '13.*' ] | |
| dependency-version: [ prefer-stable ] | |
| include: | |
| - laravel: 11.* | |
| testbench: 9.* | |
| - laravel: 12.* | |
| testbench: 10.* | |
| - laravel: 13.* | |
| testbench: 11.* | |
| exclude: | |
| - laravel: 11.* | |
| php: 8.1 | |
| - laravel: 11.* | |
| php: 8.5 | |
| - laravel: 13.* | |
| php: 8.2 | |
| name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| - name: Copy .env.testing | |
| run: php -r "file_exists('.env.testing') || copy('.env.testing.example', '.env.testing');" | |
| - name: Set Nova credentials | |
| run: composer config http-basic.nova.laravel.com ${{ secrets.NOVA_4_EMAIL }} ${{ secrets.NOVA_4_CREDENTIALS }} | |
| - name: Install Dependencies | |
| run: | | |
| composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update | |
| composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction | |
| - name: Execute tests (Unit and Feature tests) via PHPUnit | |
| run: ./vendor/bin/phpunit | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.4" | |
| - name: Copy .env.testing | |
| run: php -r "file_exists('.env.testing') || copy('.env.testing.example', '.env.testing');" | |
| - name: Set Nova credentials | |
| run: composer config http-basic.nova.laravel.com ${{ secrets.NOVA_4_EMAIL }} ${{ secrets.NOVA_4_CREDENTIALS }} | |
| - name: Install Dependencies | |
| run: composer update --prefer-stable --prefer-dist --no-interaction | |
| - name: Execute tests (Unit and Feature tests) via PHPUnit | |
| run: ./vendor/bin/php-cs-fixer fix --dry-run |