Complete Redis Cluster support and standardize Redis configuration #90
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: | |
| branches: | |
| - 0.4 | |
| pull_request: | |
| env: | |
| RUN_BLOCKING_TESTS: true | |
| jobs: | |
| linux_tests: | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ["8.4", "8.5"] | |
| name: PHP ${{ matrix.php }} (Swoole 6.2.2) | |
| container: | |
| image: ghcr.io/hypervel/components-ci:php${{ matrix.php }}-swoole6.2.2 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Log trigger context | |
| uses: ./.github/actions/log-trigger-context | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: /root/.composer/cache | |
| key: composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }} | |
| restore-keys: composer-${{ matrix.php }}- | |
| - name: Install dependencies | |
| run: | | |
| COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist -n -o | |
| - name: Check code style | |
| run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --diff | |
| - name: Run framework test suite | |
| run: vendor/bin/paratest -c phpunit.xml.dist | |
| - name: Run Testbench package-mode suite | |
| run: php src/testbench/bin/testbench package:test --parallel tests/Testbench | |
| # Local equivalent: composer test:dogfood. Direct commands bypass Composer's process timeout in CI. | |
| - name: Install Testbench dogfood package dependencies | |
| working-directory: dogfood/testbench-package | |
| run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist -n -o | |
| - name: Run Testbench dogfood package suite | |
| working-directory: dogfood/testbench-package | |
| run: vendor/bin/testbench package:test --parallel | |
| wayfinder_tests: | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')" | |
| name: Wayfinder | |
| container: | |
| image: ghcr.io/hypervel/components-ci:php8.4-swoole6.2.2 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Log trigger context | |
| uses: ./.github/actions/log-trigger-context | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: /root/.composer/cache | |
| key: composer-8.4-${{ hashFiles('composer.lock') }} | |
| restore-keys: composer-8.4- | |
| - name: Install Composer dependencies | |
| run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist -n -o | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@10.24.0 --activate | |
| - name: Install Node dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run Wayfinder tests | |
| run: pnpm test:wayfinder | |
| - name: Run Wayfinder tests against cached routes | |
| run: pnpm test:wayfinder:cached | |
| - name: Type-check generated Wayfinder output | |
| run: pnpm typecheck:wayfinder |