[FEATURE] Implemented base structure for the whole build and testing … #672
This file contains 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: CI | |
on: [push, pull_request] | |
jobs: | |
build-php: | |
name: Build PHP | |
runs-on: ubuntu-20.04 | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
max-parallel: 6 | |
fail-fast: false | |
matrix: | |
typo3: ['11', '12', '13'] | |
php: ['php8.2', 'php8.3'] | |
experimental: [false] | |
include: | |
- typo3: '11' | |
php: 'php8.0' | |
experimental: false | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up PHP Version | |
run: | | |
sudo update-alternatives --set php /usr/bin/${{ matrix.php }} | |
php -v | |
- name: Update Composer | |
run: | | |
sudo composer self-update | |
composer --version | |
- name: Install | |
run: | | |
composer require typo3/cms-core:^${{ matrix.typo3 }} typo3/cms-backend:^${{ matrix.typo3 }} typo3/cms-extbase:^${{ matrix.typo3 }} typo3/cms-fluid:^${{ matrix.typo3 }} typo3/cms-frontend:^${{ matrix.typo3 }} typo3/cms-install:^${{ matrix.typo3 }} typo3/cms-dashboard:^${{ matrix.typo3 }} --no-progress | |
- name: Lint | |
run: composer test:php:lint | |
- name: CGL | |
run: composer cgl | |
- name: PHPStan | |
run: php -d memory_limit=-1 vendor/bin/phpstan analyse -c Build/phpstan.cms${{ matrix.typo3 }}.neon |