chore(deps): update ramsey/composer-install action to v4 #333
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: | |
| branches: | |
| - master | |
| - 'renovate/**' | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| tests: | |
| name: Tests (PHP ${{ matrix.php-version }}, TYPO3 ${{ matrix.typo3-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| typo3-version: [ "13.4.1" ] | |
| php-version: [ "8.2", "8.3", "8.4" ] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| # Prepare environment | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| coverage: none | |
| extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql | |
| # Setup DDEV | |
| - name: Setup DDEV | |
| uses: ddev/github-action-setup-ddev@v1 | |
| with: | |
| autostart: false | |
| - name: Configure and start DDEV | |
| run: | | |
| ddev config --project-type=typo3 --php-version=${{ matrix.php-version }} --xdebug-enabled=true | |
| ddev start | |
| # Install dependencies | |
| - name: Install Composer dependencies | |
| uses: ramsey/composer-install@4.0.0 | |
| with: | |
| dependency-versions: ${{ matrix.dependencies }} | |
| composer-options: --with=typo3/cms-core:"^${{ matrix.typo3-version }}" | |
| # Init TYPO3 | |
| - name: Init TYPO3 | |
| run: ddev init-typo3 | |
| # Run Playwright acceptance tests | |
| - name: Run acceptance tests | |
| uses: nick-fields/retry@v4 | |
| with: | |
| max_attempts: 3 | |
| retry_on: error | |
| timeout_minutes: 10 | |
| command: ddev playwright test --config=playwright.config.ts | |
| - name: Run functional and unit tests | |
| run: | | |
| ddev composer ci:test:functional | |
| ddev composer ci:test:unit | |
| # Save Playwright reports | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-reports-${{ matrix.php-version }}-${{ matrix.typo3-version }} | |
| path: | | |
| Tests/Playwright/test-results | |
| Tests/Playwright/playwright-report | |
| if: failure() |