Skip to content

Commit b4e80ec

Browse files
committed
ci: Add code style job for CI
1 parent e939e48 commit b4e80ec

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Code style & tests"
2+
on:
3+
pull_request:
4+
# Run this workflow for all PRs against main
5+
branches:
6+
- main
7+
8+
jobs:
9+
php-check:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
composer-command: ['style:php']
14+
directory: ['extension-installer', 'fractor', 'fractor-xml', 'typo3-fractor']
15+
defaults:
16+
run:
17+
working-directory: ${{ matrix.directory }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.event.pull_request.head.sha }}
22+
23+
- name: Install composer dependencies
24+
uses: php-actions/composer@v6
25+
with:
26+
container_workdir: /app/${{ matrix.directory }}
27+
memory_limit: 512M
28+
29+
- name: 'Run check "${{ matrix.composer-command }}"'
30+
uses: php-actions/composer@v6
31+
with:
32+
container_workdir: /app/${{ matrix.directory }}
33+
command: ${{ matrix.composer-command }}
34+
memory_limit: 512M

0 commit comments

Comments
 (0)