[E2E] Add quality tools: PHP-CS-Fixer and Twig-CS-Fixer #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: App Tests | |
| on: | |
| push: | |
| paths: | |
| - 'apps/**' | |
| - '.github/workflows/app-code-quality.yaml' | |
| pull_request: | |
| paths: | |
| - 'apps/**' | |
| - '.github/workflows/app-code-quality.yaml' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| app-code-quality: | |
| name: App Code Quality Checks | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| app: ['e2e'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| - name: Install composer packages | |
| uses: ramsey/composer-install@v3 | |
| with: | |
| working-directory: apps/${{ matrix.app }} | |
| - name: Ensure PHP code style | |
| run: php vendor/bin/php-cs-fixer fix --diff --dry-run | |
| working-directory: apps/${{ matrix.app }} | |
| - name: Ensure Twig files are nicely formatted | |
| run: php vendor/bin/twig-cs-fixer lint | |
| working-directory: apps/${{ matrix.app }} |