name: Code Quality - Run automated code quality checks on: push: branches: [ main ] pull_request: branches: [ main ] jobs: phpcs: name: PHP CodeSniffer runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: clean: 'true' - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '7.4' extensions: mbstring, intl, zip tools: composer:v2, phpcs - name: Install dependencies run: composer install --prefer-dist --no-progress - name: Run PHPCS run: composer run phpcs continue-on-error: true - name: Run PHPCBF (report only) run: | echo "Running PHPCBF in dry-run mode to show what would be fixed" composer run phpcbf -- --dry-run continue-on-error: true # SonarCloud job temporarily removed due to Java version compatibility issues # Will be re-added in a future PR with proper configuration # Codacy job temporarily removed due to GitHub Actions compatibility issues # Will be re-added in a future PR with proper configuration