Skip to content

[BUGFIX] Get first site config in root line #113

[BUGFIX] Get first site config in root line

[BUGFIX] Get first site config in root line #113

Workflow file for this run

name: CI
on:
push:
paths:
- '**.php'
- '.github/workflows/**'
branches-ignore:
- 'l10n**'
pull_request:
branches-ignore:
- 'l10n**'
jobs:
build-php:
name: Build PHP
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
typo3: [ '^12' ]
php: [ '8.1', '8.2' ]
mysql: [ '8.0' ]
steps:
- id: checkout
name: Checkout Code
uses: actions/checkout@v3
- id: setup_mysql
name: Set up MySQL ${{ matrix.mysql }}
uses: mirromutth/mysql-action@v1.1
with:
mysql version: ${{ matrix.mysql }}
mysql root password: 'root'
- id: setup_php
name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Composer Cache Vars
id: composer-cache-vars
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
echo "timestamp=$(date +"%s")" >> $GITHUB_OUTPUT
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache-vars.outputs.dir }}
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.typo3 }}-${{ steps.composer-cache-vars.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.typo3 }}-
${{ runner.os }}-composer-${{ matrix.php }}-
${{ runner.os }}-composer-
- id: install
name: Install
run: |
composer u --no-progress
- id: cgl
name: CGL
if: ${{ always() && steps.install.conclusion == 'success' }}
run: |
composer ci:php:cs
- id: lint
name: Lint
run: |
composer ci:php:lint
- id: phpstan
name: PHPStan
if: ${{ always() && steps.install.conclusion == 'success' }}
run: |
composer ci:php:stan -- --error-format=github
- id: tests_unit
name: Unit Tests
if: ${{ always() && steps.install.conclusion == 'success' }}
run: |
composer ci:tests:unit