Skip to content

chore: update dev dependencies #36

chore: update dev dependencies

chore: update dev dependencies #36

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
tests:
name: Build PHP/TYPO3
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Get Composer cache directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install composer dependencies
run: |
composer update --no-progress --prefer-dist --optimize-autoloader
- name: Run PHP linter
run: |
find . -type f -name '*.php' ! -path "./.Build/*" -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )
- name: Run tests
run: |
make tests
code-quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- name: Get Composer cache directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install composer dependencies
run: |
composer update --no-progress --prefer-dist --optimize-autoloader
- name: Normalize composer.json
run: |
composer normalize --dry-run
- name: Verify PSR-4 namespace correctness
run: |
composer dumpautoload --optimize --strict-psr
- name: Check coding standards
if: always()
run: |
vendor/bin/ecs check --no-progress-bar
- name: Run mutation tests
if: always()
run: |
make infection
- name: Run phpstan
if: always()
run: |
make phpstan
- name: Run rector
if: always()
run: |
make rector-dry