fix: comment out Pest setup for PHP 8.1 in workflow #10459
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: tests | |
| on: | |
| push: | |
| paths: | |
| - "**" | |
| - "!docs/**" | |
| - "!.vscode/**" | |
| - "!**.md" | |
| pull_request: | |
| paths: | |
| - "**" | |
| - "!docs/**" | |
| - "!.vscode/**" | |
| - "!**.md" | |
| schedule: | |
| - cron: '0 2 * * *' | |
| env: | |
| PHP_CS_FIXER_IGNORE_ENV: 1 | |
| jobs: | |
| cs-fix: | |
| name: PHP CS Fixer on PHP ${{ matrix.php }} | |
| runs-on: "${{ matrix.os }}" | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| php: ['8.1'] | |
| max-parallel: 20 | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: redis, pdo, pdo_mysql, bcmath, swoole | |
| tools: phpize | |
| coverage: none | |
| # - name: Setup Pest for PHP 8.1 | |
| # if: ${{ matrix.php == '8.1' }} | |
| # run: | | |
| # composer require brianium/paratest:7.3.1 --dev --no-update | |
| # composer require pestphp/pest:2.36.0 --dev --no-update | |
| # composer require pestphp/pest-plugin-faker:2.0.0 --dev --no-update | |
| # composer require phpunit/phpunit:10.5.36 --dev --no-update | |
| - name: Setup Packages | |
| run: composer update -o | |
| - name: Check Composer Json | |
| run: | | |
| composer normalize --dry-run --no-update-lock | |
| find ./src -name composer.json -exec composer normalize --dry-run --no-update-lock {} \; | |
| - name: Run Cs Fixer | |
| run: vendor/bin/php-cs-fixer fix $1 --dry-run --diff --verbose | |
| tests: | |
| needs: cs-fix | |
| name: Test on PHP ${{ matrix.php }} with Swoole ${{ matrix.swoole }} | |
| runs-on: "${{ matrix.os }}" | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| php: ['8.3', '8.2', '8.1'] | |
| swoole: ['6.1.3', '6.0.2', '5.1.8'] | |
| # exclude: | |
| # - php: '8.3' | |
| # swoole: '5.0.3' | |
| max-parallel: 20 | |
| fail-fast: false | |
| env: | |
| SW_VERSION: ${{ matrix.swoole }} | |
| PHP_VERSION: ${{ matrix.php }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: redis, pdo, pdo_mysql, bcmath ,swoole-${{ matrix.swoole }} | |
| tools: phpize | |
| coverage: none | |
| # - name: Setup Swoole | |
| # run: ./.travis/setup.swoole.sh | |
| - name: Show PHP Information | |
| run: php -v && php --ri swoole | |
| # - name: Setup Pest for PHP 8.1 | |
| # if: ${{ matrix.php == '8.1' }} | |
| # run: | | |
| # composer require brianium/paratest:7.3.1 --dev --no-update | |
| # composer require pestphp/pest:2.36.0 --dev --no-update | |
| # composer require pestphp/pest-plugin-faker:2.0.0 --dev --no-update | |
| # composer require phpunit/phpunit:10.5.36 --dev --no-update | |
| - name: Setup Dependencies | |
| run: composer update -o | |
| - name: Run Analyse | |
| run: composer analyse src | |
| - name: Run Type Tests | |
| run: composer analyse:types | |
| - name: Setup Services | |
| run: ./.travis/setup.services.sh | |
| - name: Run Test Cases | |
| uses: nick-fields/retry@v3 | |
| with: | |
| timeout_minutes: 10 | |
| max_attempts: 2 | |
| command: php vendor/bin/pest --parallel |