fix: Match getAuthenticationStatus order with resolve method #243
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: run-tests | |
| on: | |
| push: | |
| paths: | |
| - '**.php' | |
| - '.github/workflows/run-tests.yml' | |
| - 'phpunit.xml.dist' | |
| - 'composer.json' | |
| - 'composer.lock' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 8 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Laravel 10 EOL: Feb 4, 2025 - dropped from test matrix | |
| # See: https://laravel.com/docs/12.x/releases#support-policy | |
| php: [8.2, 8.3, 8.4] | |
| laravel: [11.*, 12.*] | |
| stability: [prefer-stable] | |
| include: | |
| - laravel: 12.* | |
| testbench: 10.* | |
| - laravel: 11.* | |
| testbench: 9.* | |
| exclude: | |
| # Laravel 12 requires PHP 8.3+ | |
| - php: 8.2 | |
| laravel: 12.* | |
| name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv | |
| tools: composer:v2 | |
| coverage: none | |
| - 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@v4 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.json') }} | |
| restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer- | |
| - name: Install dependencies | |
| run: | | |
| composer remove --dev --no-update larastan/larastan phpstan/phpstan-deprecation-rules phpstan/phpstan-phpunit phpstan/extension-installer | |
| composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update | |
| composer require --dev --no-update "nunomaduro/collision:^8.0" | |
| composer update --${{ matrix.stability }} --prefer-dist --no-interaction --with-all-dependencies | |
| - name: Execute tests | |
| run: vendor/bin/pest | |
| env: | |
| GITHUB_TOKEN: dummy-token-for-testing |