Merge pull request #104 from derhansen/main #186
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: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
env: | |
# See version matrix @ https://typo3.org/cms/roadmap | |
- { php: 8.1, typo3: 11 } | |
- { php: 8.1, typo3: 12 } | |
env: ${{ matrix.env }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up PHP Version | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.env.php }} | |
tools: composer:v2 | |
- name: Lint PHP files | |
run: find *.php Classes -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Cache dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ~/.composer/cache | |
key: dependencies-composer-${{ hashFiles('composer.json') }} | |
- name: Install composer dependencies | |
run: | | |
composer require typo3/cms-core:^$typo3 typo3/cms-frontend:^$typo3 typo3/cms-backend:^$typo3 | |
- name: Run PHPStan | |
run: composer phpstan |