From 859fdda03196a63957366cb71998e3510c97e90a Mon Sep 17 00:00:00 2001 From: Andreas Wolf Date: Fri, 8 Mar 2024 15:52:47 +0100 Subject: [PATCH] ci: Add code style job for CI --- .../workflows/lint_test_pull_requests.yaml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/lint_test_pull_requests.yaml diff --git a/.github/workflows/lint_test_pull_requests.yaml b/.github/workflows/lint_test_pull_requests.yaml new file mode 100644 index 00000000..e5fa75a2 --- /dev/null +++ b/.github/workflows/lint_test_pull_requests.yaml @@ -0,0 +1,32 @@ +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: + memory_limit: 512M + + - name: 'Run check "${{ matrix.composer-command }}"' + uses: php-actions/composer@v6 + with: + command: ${{ matrix.composer-command }} + memory_limit: 512M