From 7685fe1f6eaf0a6160baf94a291036bc38723035 Mon Sep 17 00:00:00 2001 From: Tom Kay Date: Thu, 3 Sep 2026 12:54:39 +0100 Subject: [PATCH] Add GitHub Actions CI with a PHP version matrix Adds a setup-php matrix mirroring packaged/dal, with fail-fast disabled so every leg reports independently. The matrix runs 8.2 only. composer.json claims "php": ">=8.0", but that is no longer true in practice: packaged/context ~1.0 pulls packaged/http 2.0.0, which requires symfony/http-foundation ^v7.2.0, and every release in that range requires PHP >= 8.2. Composer cannot resolve an installable set on 8.0 or 8.1 -- verified by 8.0 and 8.1 legs failing at "composer install" on the first push of this branch. Bumping the declared floor to >=8.2 would make composer.json honest, but that is a packaging decision, so it is left alone and the matrix reflects reality instead. The existing CircleCI config is left in place; it still targets PHP 7.2, 7.3 and rc, none of which this package supports any more. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..45ccd5f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php-version: + - "8.2" + + steps: + - name: Checkout repository + uses: actions/checkout@v7 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + coverage: none + + - name: Composer install + run: composer install + + - name: PHPUnit + run: vendor/bin/phpunit