Skip to content

Add CI pipeline

Add CI pipeline #2

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: ['style:php']
directory: ['extension-installer', 'fractor', 'fractor-xml', 'typo3-fractor']
steps:
- uses: actions/checkout@v4
working-directory: ${{ matrix.directory }}

Check failure on line 17 in .github/workflows/lint_test_pull_requests.yaml

View workflow run for this annotation

GitHub Actions / Code style & tests

Invalid workflow file

The workflow is not valid. .github/workflows/lint_test_pull_requests.yaml (Line: 17, Col: 9): Unexpected value 'working-directory' .github/workflows/lint_test_pull_requests.yaml (Line: 23, Col: 9): Unexpected value 'uses'
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install composer dependencies
working-directory: ${{ matrix.directory }}
uses: php-actions/composer@v6
with:
memory_limit: 512M
- name: 'Run check "${{ matrix.composer-command }}"'
uses: php-actions/composer@v6
working-directory: ${{ matrix.directory }}
with:
command: ${{ matrix.composer-command }}
memory_limit: 512M