theme-picker, 404 page #14
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: Code Quality Checks | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| php: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.5" | |
| extensions: mbstring, xml, ctype, iconv, intl, dom, filter, json, zip, tidy | |
| tools: composer:v2 | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v6 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-php- | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Run Rector (dry run) | |
| run: vendor/bin/rector process --dry-run | |
| - name: Run PHP CS Fixer (dry run) | |
| run: vendor/bin/php-cs-fixer fix --dry-run --diff --verbose | |
| - name: Run PHPStan | |
| run: vendor/bin/phpstan analyse --memory-limit=1G | |
| - name: Check security vulnerabilities | |
| run: composer audit | |
| - name: Run PHPUnit Tests | |
| run: vendor/bin/phpunit |