Fix CI: pin PHPUnit <13.2 and run e2e on PHP 8.4 #71
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: | |
| jobs: | |
| functional-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - php-version: '8.1' | |
| typo3-version: '^12.4' | |
| - php-version: '8.3' | |
| typo3-version: '^12.4' | |
| - php-version: '8.3' | |
| typo3-version: '^13.4' | |
| - php-version: '8.4' | |
| typo3-version: '^13.4' | |
| - php-version: '8.3' | |
| typo3-version: '^14.3' | |
| - php-version: '8.4' | |
| typo3-version: '^14.3' | |
| name: PHP ${{ matrix.php-version }} / TYPO3 ${{ matrix.typo3-version }} | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: sqlite3, pdo_sqlite | |
| coverage: none | |
| - name: Install TYPO3 version | |
| run: composer require --no-update typo3/cms-core:${{ matrix.typo3-version }} typo3/cms-backend:${{ matrix.typo3-version }} typo3/cms-scheduler:${{ matrix.typo3-version }} typo3/cms-install:${{ matrix.typo3-version }} | |
| - name: Install Composer dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Run functional test suite | |
| run: composer test | |
| e2e-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| typo3-version: ['12.4', '13.4', '14.3'] | |
| name: E2E TYPO3 ${{ matrix.typo3-version }} | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| # PHP 8.4 is used for the e2e suite (supported by TYPO3 12.4/13.4/14.3). | |
| # The PHP built-in web server used here misroutes some TYPO3 v14 backend | |
| # module requests on PHP 8.3 (an environment quirk unrelated to the | |
| # extension); 8.4 serves them reliably. Real deployments use php-fpm. | |
| # PHP-version compatibility of the code itself is covered by functional-tests. | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| extensions: sqlite3, pdo_sqlite, intl | |
| coverage: none | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: Build/package-lock.json | |
| - name: Install Playwright (npm + browser with system deps) | |
| working-directory: Build | |
| run: | | |
| npm ci | |
| npx playwright install --with-deps chromium | |
| - name: Run E2E test suite | |
| run: bash Build/runTests.sh -s e2e -t ${{ matrix.typo3-version }} --no-docker | |
| - name: Upload Playwright report | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report-typo3-${{ matrix.typo3-version }} | |
| path: | | |
| Build/playwright-report | |
| Build/test-results | |
| retention-days: 7 |