Skip to content

Commit

Permalink
ci: Add code style job for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaswolf committed Mar 8, 2024
1 parent 574dd0f commit c353c9c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/lint_test_pull_requests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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']
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 }}"'
uses: php-actions/composer@v6
with:
container_workdir: /app/${{ matrix.directory }}
command: ${{ matrix.composer-command }}
memory_limit: 512M

0 comments on commit c353c9c

Please sign in to comment.