Repository navigation
GroupedSelection: an aggregate over a group without rows returns null #920
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, pull_request] | |
| env: | |
| # pdo_sqlsrv is deliberately unpinned: no single release covers the whole matrix | |
| # (5.12 = PHP 8.1-8.3, 5.13 = PHP 8.3-8.5), so let setup-php pick a compatible one | |
| php-extensions: mbstring, intl, pdo_sqlsrv | |
| php-tools: "composer:v2, pecl" | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| php: ['8.3', '8.4', '8.5'] | |
| fail-fast: false | |
| name: PHP ${{ matrix.php }} tests | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Start database containers | |
| run: docker compose up -d --wait --quiet-pull | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: ${{ env.php-extensions }} | |
| tools: ${{ env.php-tools }} | |
| coverage: none | |
| - name: Create databases.ini | |
| run: cp ./tests/databases.docker.ini ./tests/Database/databases.ini | |
| - run: composer install --no-progress --prefer-dist | |
| - run: composer tester | |
| - if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: output-${{ matrix.php }} | |
| path: tests/**/output | |
| lowest_dependencies: | |
| name: Lowest Dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.3 | |
| coverage: none | |
| - name: Create databases.ini | |
| run: cp ./tests/databases.sqlite.ini ./tests/Database/databases.ini | |
| - run: composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable | |
| - run: composer tester |