PHP 8.5 - fix datagrid column sequence #53
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, pull_request] | |
| jobs: | |
| phpunit: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| php: [8.5] | |
| testsuite: ["unit"] | |
| name: PHPUnit - ${{ matrix.testsuite }} (PHP ${{ matrix.php }}) | |
| services: | |
| mysql: | |
| image: mysql:5.7 | |
| env: | |
| MYSQL_DATABASE: spoon_tests | |
| MYSQL_ROOT_PASSWORD: "spoon" | |
| ports: | |
| - 3306:3306 | |
| options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.composer/cache/files | |
| key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, bcmath, intl, gd, exif, iconv, imagick | |
| coverage: xdebug # Switch to PCOV for a speed gain when we can use PHP 7.2 & PHPUnit 8.0. | |
| - name: Install dependencies | |
| env: | |
| FORK_ENV: test | |
| SYMFONY_DEPRECATIONS_HELPER: "quiet" | |
| run: composer install -o | |
| - name: Execute tests | |
| env: | |
| SYMFONY_DEPRECATIONS_HELPER: "quiet" | |
| run: vendor/bin/simple-phpunit --testsuite=${{ matrix.testsuite}} --coverage-clover=${{ matrix.testsuite}}.clover | |
| - name: Upload Coverage report | |
| uses: codecov/codecov-action@v1 | |
| with: | |
| file: ${{ matrix.testsuite}}.clover | |
| flags: ${{ matrix.testsuite}} |