Add tests for TYPO3 12 #37
Workflow file for this run
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
# Adapted from https://github.com/TYPO3GmbH/blog/blob/master/.github/workflows/ci.yml | |
name: CI | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
typo3: ['^11.5', '^12.4'] | |
php: ['8.1', '8.2'] | |
include: | |
- typo3: ^11.5 | |
php: '7.4' | |
- typo3: ^11.5 | |
php: '8.0' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP ${{ matrix.php }}, with composer and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring, dom, zip | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache composer dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install dependencies with typo3/cms-core:${{ matrix.typo3 }} | |
run: | | |
composer require typo3/cms-core:${{ matrix.typo3 }} --no-progress | |
git checkout composer.json | |
- name: php-cs-fixer | |
run: composer ci:php:fixer | |
- name: Lint PHP | |
run: composer ci:php:lint |