Skip to content

Add php-cs-fixer and run config and add unified header comments #97

Add php-cs-fixer and run config and add unified header comments

Add php-cs-fixer and run config and add unified header comments #97

Workflow file for this run

name: build
on:
push:
branches: [ develop, main ]
tags: [ '*' ]
pull_request:
branches: [ develop ]
jobs:
resources:
name: Resources tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run the xliff lint
run: Build/Scripts/additionalTests.sh -s lintXliff
- name: Test documentation build
run: Build/Scripts/additionalTests.sh -s buildDocumentation
- name: Cleanup
run: |
Build/Scripts/runTests.sh -s clean ; \
Build/Scripts/additionalTests.sh -s clean ; \
git checkout composer.json
testsuite:
name: All php tests
runs-on: ubuntu-latest
strategy:
matrix:
packages:
- php: '8.1'
core: '^12.4'
prefer: ''
- php: '8.1'
core: '^12.4'
prefer: '--prefer-lowest'
- php: '8.2'
core: '^12.4'
prefer: ''
- php: '8.2'
core: '^12.4'
prefer: '--prefer-lowest'
- php: '8.2'
core: '^13.0'
prefer: ''
- php: '8.2'
core: '^13.0'
prefer: '--prefer-lowest'
- php: '8.3'
core: '^13.0'
prefer: ''
- php: '8.3'
core: '^13.0'
prefer: '--prefer-lowest'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint php
run: |
Build/Scripts/additionalTests.sh \
-p ${{ matrix.packages.php }} \
-s lintPhp
# - name: Composer install
# run: |
# Build/Scripts/runTests.sh \
# -p ${{ matrix.packages.php }} \
# -s composerInstall
- name: Composer install core
run: |
Build/Scripts/additionalTests.sh \
-p ${{ matrix.packages.php }} \
-s composerInstallPackage \
-q "typo3/cms-core:${{ matrix.packages.core }}" \
-r " ${{ matrix.packages.prefer }}"
- name: Composer validate
run: |
Build/Scripts/runTests.sh \
-p ${{ matrix.packages.php }} \
-s composerValidate
- name: Cleanup
run: |
Build/Scripts/runTests.sh -s clean
Build/Scripts/additionalTests.sh -s clean
git checkout composer.json
TERUpload:
needs: [ resources, testsuite ]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
name: TYPO3 TER release
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Publish to TER
uses: tomasnorre/typo3-upload-ter@v2
with:
api-token: ${{ secrets.TYPO3_API_TOKEN }}