Attach AJAX requests to the existing debug bar #20
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: | |
| - push | |
| - pull_request | |
| jobs: | |
| phpstan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP, with composer and extensions | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 7.3 | |
| - name: Install dependencies with Composer | |
| uses: ramsey/composer-install@v3 | |
| - name: Run phpstan | |
| run: vendor/bin/phpstan analyse --level=6 src/ | |
| tests: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| dependencies: | |
| - highest | |
| - lowest | |
| php-versions: | |
| - 7.3 | |
| - 7.4 | |
| - 8.0 | |
| - 8.1 | |
| - 8.2 | |
| - 8.3 | |
| exclude: | |
| # Lowest bounds of our dependencies were released before PHP 8.1 | |
| # and do not carry #[\ReturnTypeWillChange], so they fatal on load. | |
| # This is a limitation of those old releases, not of this library: | |
| # every supported PHP version is covered by the highest jobs. | |
| - dependencies: lowest | |
| php-versions: 8.1 | |
| - dependencies: lowest | |
| php-versions: 8.2 | |
| - dependencies: lowest | |
| php-versions: 8.3 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP, with composer and extensions | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| - name: Install dependencies with Composer | |
| uses: ramsey/composer-install@v3 | |
| with: | |
| dependency-versions: ${{ matrix.dependencies }} | |
| - name: Run unit tests | |
| run: vendor/bin/phpunit |