Skip to content

Add CI pipeline

Add CI pipeline #10

name: "Code style & tests"
on:
pull_request:
# Run this workflow for all PRs against main
branches:
- main
jobs:
php-check:
runs-on: ubuntu-latest
strategy:
matrix:
composer-command:
- name: Code Style
command: 'style:php'
- name: Composer normalizer
command: 'normalize --dry-run'
directory: ['extension-installer', 'fractor', 'fractor-xml', 'typo3-fractor']
name: ${{ matrix.directory }}/${{ matrix.composer-command.name }}
defaults:
run:
working-directory: ${{ matrix.directory }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install composer dependencies
uses: php-actions/composer@v6
with:
container_workdir: /app/${{ matrix.directory }}
memory_limit: 512M
- name: 'Run check "${{ matrix.composer-command.name }}"'
uses: php-actions/composer@v6
with:
container_workdir: /app/${{ matrix.directory }}
command: ${{ matrix.composer-command.command }}
memory_limit: 512M