Bump squizlabs/php_codesniffer from 3.13.5 to 3.13.6 #3122
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: Testing | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| schedule: | |
| - cron: '17 1 * * *' # Run every day on a seemly random time. | |
| jobs: | |
| test: | |
| uses: wp-cli/.github/.github/workflows/reusable-testing.yml@main | |
| minimum-php-guard: | |
| name: Minimum PHP guard - PHP ${{ matrix.php }} | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['5.6', '7.1'] | |
| steps: | |
| - name: Check out source code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up PHP environment | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2 | |
| with: | |
| php-version: '${{ matrix.php }}' | |
| coverage: none | |
| - name: Check minimum PHP guard | |
| run: | | |
| if php php/boot-phar.php > stdout.txt 2> stderr.txt; then | |
| echo 'Expected boot-phar.php to reject unsupported PHP version.' | |
| exit 1 | |
| fi | |
| test ! -s stdout.txt | |
| printf 'Error: WP-CLI requires PHP 7.2.24 or newer. You are running version %s.\n' "$(php -r 'echo PHP_VERSION;')" > expected.txt | |
| diff -u expected.txt stderr.txt |