Fix: false-positive InvalidArgument on Nova field callbacks (#12) #41
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: Format (PHP) | |
| on: | |
| push: | |
| paths: | |
| - '**.php' | |
| - 'composer.json' | |
| - 'phpcs.xml' | |
| - '.github/workflows/format_php.yml' | |
| pull_request: | |
| jobs: | |
| format_php: | |
| name: Format PHP | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 7 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2 | |
| with: | |
| php-version: '8.4' | |
| coverage: none | |
| tools: cs2pr | |
| - name: Cache composer dependencies | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 | |
| with: | |
| path: vendor | |
| key: composer-${{ hashFiles('composer.json') }} | |
| - name: Run composer install | |
| run: composer install -n --prefer-dist | |
| - name: Run PHP-CS-Fixer | |
| run: vendor/bin/php-cs-fixer fix --dry-run --diff --no-interaction --format=checkstyle | cs2pr | |
| - name: Run PHP_CodeSniffer | |
| run: vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr |