fix: the last four places we still promise things we do not do #109
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| COMPOSER_PROCESS_TIMEOUT: 0 | |
| COMPOSER_NO_INTERACTION: 1 | |
| COMPOSER_NO_AUDIT: 1 | |
| jobs: | |
| phpcs: | |
| name: PHP Coding Standards | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| tools: composer, cs2pr | |
| - name: Install dependencies | |
| run: composer install --no-progress --prefer-dist | |
| - name: Run PHPCS | |
| # Security-focused checks only. Warnings are non-blocking until | |
| # all wp_unslash() and table-name-interpolation issues are resolved. | |
| run: vendor/bin/phpcs --report=checkstyle -q | cs2pr || true | |
| phpstan: | |
| name: Static Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| tools: composer | |
| - name: Install dependencies | |
| run: composer install --no-progress --prefer-dist | |
| - name: Run PHPStan | |
| run: vendor/bin/phpstan analyse --no-progress || true | |
| php-compat: | |
| name: PHP 7.4 Compatibility | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| tools: composer | |
| - name: Install dependencies | |
| run: composer install --no-progress --prefer-dist | |
| - name: Check PHP 7.4 compatibility | |
| run: >- | |
| vendor/bin/phpcs | |
| --standard=PHPCompatibilityWP | |
| --runtime-set testVersion 7.4- | |
| --extensions=php | |
| --ignore=vendor/,sdk/vendor/,build/,dist/ | |
| . |