Skip to content

Commit 859fdda

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

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
memory_limit: 512M
27+
28+
- name: 'Run check "${{ matrix.composer-command }}"'
29+
uses: php-actions/composer@v6
30+
with:
31+
command: ${{ matrix.composer-command }}
32+
memory_limit: 512M

0 commit comments

Comments
 (0)