From 84592f1ec4a89f62704ffd42ee431aaa03a66a86 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 21:16:26 +0000 Subject: [PATCH 1/3] Add PHP 8.6 to the PHPUnit CI matrix PHP 8.6 is not released yet, so this PR stays open until GA. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_017CaQyQS6uWdVCeePxEYngu --- .github/workflows/continuous-integration.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 71f9c1f..02e874b 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -25,6 +25,7 @@ jobs: - '8.3' - '8.4' - '8.5' + - '8.6' steps: - name: Checkout uses: actions/checkout@v4 From 0f69a05269bf174c0d456188c7957d61794c27a6 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 31 Oct 2026 02:23:18 +0000 Subject: [PATCH 2/3] Skip static analysis dev tools in the PHP 8.6 test job vimeo/psalm does not allow PHP 8.6 yet, so composer update failed before PHPUnit ran. The test job only needs phpunit, so drop the analysis tools for 8.6 only. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_017CaQyQS6uWdVCeePxEYngu --- .github/workflows/continuous-integration.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 02e874b..071e543 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -51,6 +51,10 @@ jobs: ${{ runner.os }}-php${{ matrix.php-version }}-composer- ${{ runner.os }}-composer- + - name: Remove static analysis tools that do not support PHP 8.6 yet + if: matrix.php-version == '8.6' + run: composer remove --dev --no-update vimeo/psalm phpstan/phpstan phpmd/phpmd squizlabs/php_codesniffer doctrine/coding-standard maglnet/composer-require-checker + - name: Install dependencies run: composer update --no-interaction --no-progress --prefer-dist From 7f4564b4a7e7275bfd6b79249cef4dd5a716ea6b Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 31 Oct 2026 02:37:41 +0000 Subject: [PATCH 3/3] Use the shared CI workflow and move analysis tools to vendor-bin Align with the other Ray packages: the PHPUnit job now calls the shared v1 workflow, which runs composer with --no-plugins, and the analysis tools (Psalm, PHPStan, PHPMD, PHP_CodeSniffer, composer-require-checker) live in vendor-bin/tools. composer install still installs them and links them into vendor/bin for the static analysis and coding standards jobs. This removes the PHP 8.6-only step that dropped them. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_017CaQyQS6uWdVCeePxEYngu --- .github/workflows/continuous-integration.yml | 59 ++------------------ composer.json | 17 +++--- vendor-bin/tools/composer.json | 15 +++++ 3 files changed, 29 insertions(+), 62 deletions(-) create mode 100644 vendor-bin/tools/composer.json diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 071e543..e2c236e 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -2,61 +2,12 @@ name: Continuous Integration on: push: - paths-ignore: - - '**.md' pull_request: - paths-ignore: - - '**.md' workflow_dispatch: jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - operating-system: - - ubuntu-latest - php-version: - - '8.0' - - '8.1' - - '8.2' - - '8.3' - - '8.4' - - '8.5' - - '8.6' - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup PHP ${{ matrix.php-version }} - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - coverage: none - tools: none - ini-values: assert.exception=1, zend.assertions=1 - - - name: Get composer cache directory - id: composer-cache - run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - - name: Cache dependencies - uses: actions/cache@v4 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: | - ${{ runner.os }}-php${{ matrix.php-version }}-composer- - ${{ runner.os }}-composer- - - - name: Remove static analysis tools that do not support PHP 8.6 yet - if: matrix.php-version == '8.6' - run: composer remove --dev --no-update vimeo/psalm phpstan/phpstan phpmd/phpmd squizlabs/php_codesniffer doctrine/coding-standard maglnet/composer-require-checker - - - name: Install dependencies - run: composer update --no-interaction --no-progress --prefer-dist - - - name: Run test suite - run: ./vendor/bin/phpunit + ci: + uses: ray-di/.github/.github/workflows/continuous-integration.yml@v1 + with: + old_stable: '["8.0", "8.1", "8.2", "8.3", "8.4", "8.5"]' + current_stable: 8.6 diff --git a/composer.json b/composer.json index 6f8b471..3821d93 100644 --- a/composer.json +++ b/composer.json @@ -16,13 +16,8 @@ "ray/aura-session-module": "^1.1" }, "require-dev": { - "phpunit/phpunit": "^9.5", - "doctrine/coding-standard": "^14.0", - "phpstan/phpstan": "^1.10", - "squizlabs/php_codesniffer": "^4.0", - "vimeo/psalm": "^5.0 || ^6.0", - "phpmd/phpmd": "^2.13", - "maglnet/composer-require-checker": "^4.0" + "bamarni/composer-bin-plugin": "^1.4", + "phpunit/phpunit": "^9.5" }, "license": "MIT", "autoload":{ @@ -50,7 +45,13 @@ "config": { "allow-plugins": { "aura/installer-default": true, - "dealerdirect/phpcodesniffer-composer-installer": true + "bamarni/composer-bin-plugin": true + } + }, + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true } } } diff --git a/vendor-bin/tools/composer.json b/vendor-bin/tools/composer.json new file mode 100644 index 0000000..3eb1d42 --- /dev/null +++ b/vendor-bin/tools/composer.json @@ -0,0 +1,15 @@ +{ + "require-dev": { + "doctrine/coding-standard": "^14.0", + "maglnet/composer-require-checker": "^4.0", + "phpmd/phpmd": "^2.13", + "phpstan/phpstan": "^1.10", + "squizlabs/php_codesniffer": "^4.0", + "vimeo/psalm": "^5.0 || ^6.0" + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + } +}