Skip to content

Workflow file for this run

name: 'πŸ”„ CI | ⚜️ Symfony'
on:
push:
branches:
- symfony
paths-ignore:
- README.md
- LICENSE.md
pull_request:
branches:
- laravel
paths-ignore:
- README.md
- LICENSE.md
# Allows to run this workflow manually from the Actions tab.
workflow_dispatch:
jobs:
cleanup:
name: '🧹 Clean up GitHub repo'
runs-on: ubuntu-latest
permissions: write-all
if: github.event_name != 'pull_request'
steps:
- name: 'πŸ—‘ Delete workflow runs'
uses: Mattraks/delete-workflow-runs@v2
with:
retain_days: 7
keep_minimum_runs: 1
delete_workflow_pattern: ci-symfony.yml
lint:
name: 'πŸͺ„ Lint | ${{ matrix.command.name }}'
runs-on: ubuntu-latest
strategy:
matrix:
command:
- { name: 'πŸ“¦ Composer', command: 'lint:composer' }
# - { name: 'πŸ” PHPStan', command: 'lint:php:stan' }
# - { name: 'πŸ…ΏοΈ Prettier', command: 'lint:prettier' }
# - { name: '🏠 Rector', command: 'lint:rector' }
steps:
- name: 'πŸ›Ž Checkout'
uses: actions/checkout@v4
- name: 'βš™οΈ Prepare environment'
uses: ./.github/actions/setup-validation
- name: '${{ matrix.command.name }} validate'
run: task ${{ matrix.command.command }}