Add site health check for DISABLE_WP_CRON configuration #13256
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: PHP_CodeSniffer | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| paths: | |
| - '**/*.php' | |
| - 'composer.json' | |
| - 'composer.lock' | |
| - 'phpunit.xml.dist' | |
| - 'phpcs.xml' | |
| - '.github/workflows/phpcs.yml' | |
| - '!build/**/*.asset.php' | |
| pull_request: | |
| paths: | |
| - '**/*.php' | |
| - 'composer.json' | |
| - 'composer.lock' | |
| - 'phpunit.xml.dist' | |
| - 'phpcs.xml' | |
| - '.github/workflows/phpcs.yml' | |
| - '!build/**/*.asset.php' | |
| jobs: | |
| phpcs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '7.4' | |
| coverage: none | |
| tools: composer, cs2pr | |
| - name: Install Composer dependencies for PHP | |
| uses: ramsey/composer-install@v3 | |
| - name: Detect coding standard violations | |
| run: ./vendor/bin/phpcs |