Add end-to-end test suite with Playwright #68
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 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| 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 |