[TASK] Avoid Fluid compile trait #991
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
name: build | |
on: | |
push: | |
branches: [ master, development, '[0-9]+.[0-9]+', '[0-9]+.[0-9]+.[0-9]+' ] | |
pull_request: | |
branches: [ master, development, '[0-9]+.[0-9]', '[0-9]+.[0-9]+.[0-9]+' ] | |
schedule: | |
- cron: '30 4 * * *' | |
jobs: | |
phpcs: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
name: "CodeSniffer, PHP ${{ matrix.php }} TYPO3 ${{ matrix.typo3 }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- php: "8.1" | |
typo3: "^11.5" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring, json | |
ini-values: date.timezone="Europe/Copenhagen", opcache.fast_shutdown=0 | |
tools: composer:v2.2 | |
- name: Select TYPO3 version | |
run: "composer require typo3/cms-core:${{ matrix.typo3 }} -W --no-update" | |
- name: Composer install | |
uses: ramsey/composer-install@v2 | |
- name: Run phpcs | |
run: vendor/bin/phpcs Classes Tests --standard=PSR2 | |
phpstan: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
name: "PHPStan, PHP ${{ matrix.php }} TYPO3 ${{ matrix.typo3 }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- php: "7.4" | |
typo3: "^10.4" | |
- php: "8.0" | |
typo3: "^11.5" | |
- php: "8.1" | |
typo3: "^11.5" | |
- php: "8.2" | |
typo3: "^11.5" | |
- php: "8.2" | |
typo3: "^12.4" | |
- php: "8.3" | |
typo3: "^12.4" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring, json | |
ini-values: date.timezone="Europe/Copenhagen", opcache.fast_shutdown=0 | |
tools: composer:v2.2 | |
- name: Select TYPO3 version | |
run: "composer require typo3/cms-core:${{ matrix.typo3 }} -W --no-update" | |
- name: Composer install | |
uses: ramsey/composer-install@v2 | |
- name: Run phpstan | |
run: vendor/bin/phpstan analyze | |
build: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
name: "PHPUnit, PHP ${{ matrix.php }} TYPO3 ${{ matrix.typo3 }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- php: "7.4" | |
typo3: "^10.4" | |
- php: "8.0" | |
typo3: "^11.5" | |
- php: "8.1" | |
typo3: "^11.5" | |
- php: "8.2" | |
typo3: "^11.5" | |
- php: "8.2" | |
typo3: "^12.4" | |
- php: "8.3" | |
typo3: "^12.4" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring, json | |
ini-values: date.timezone="Europe/Copenhagen", opcache.fast_shutdown=0 | |
tools: composer:v2.2 | |
- name: Select TYPO3 version | |
run: "composer require typo3/cms-core:${{ matrix.typo3 }} --no-update" | |
- name: Composer install | |
uses: ramsey/composer-install@v2 | |
- name: Run tests | |
run: vendor/bin/phpunit --coverage-clover=build/logs/clover.xml | |
- name: Upload test coverage | |
run: vendor/bin/php-coveralls -vvv | |
env: | |
COVERALLS_PARALLEL: true | |
COVERALLS_FLAG_NAME: typo3-${{ matrix.typo3 }}-php-${{ matrix.php }} | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
finish: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
parallel-finished: true |