refactor: Replace mixed types with precise recursive type definitions #42
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: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - 1.x | |
| - 2.x | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Test on PHP ${{ matrix.php-versions }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-versions: ['8.1', '8.2', '8.3', '8.4'] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| coverage: none | |
| - name: Install composer and dependencies | |
| uses: php-actions/composer@v6 | |
| - name: Upgrade Pest and PHPUnit for PHP 8.2+ | |
| if: matrix.php-versions != '8.1' | |
| run: composer require --dev pestphp/pest:^3.0 phpunit/phpunit:^11.5 --no-interaction --update-no-dev | |
| - name: Run Code Sniffer | |
| run: vendor/bin/phpcs | |
| - name: Run phpstan | |
| run: vendor/bin/phpstan analyse -c phpstan.neon --no-progress | |
| - name: Run Pest | |
| run: vendor/bin/pest |