From ca4b2dfc0d486a1eb324581d887e400d9cd34c59 Mon Sep 17 00:00:00 2001 From: Tom Kay Date: Thu, 3 Sep 2026 12:54:58 +0100 Subject: [PATCH] Add GitHub Actions CI with a PHP version matrix Adds a setup-php matrix over 7.4, 8.0, 8.1 and 8.2 with fail-fast disabled, mirroring packaged/dal and matching the versions the CircleCI config already built. Drops satooshi/php-coveralls from require-dev. It is abandoned: v1.0.2 caps out at PHP 7.x, and the earlier releases pull symfony/yaml 2.x/3.x, which Composer now refuses to install because of published security advisories. With it present "composer install" cannot resolve on any supported PHP version, so CI could not run at all. Nothing referenced it -- the CircleCI config never invoked coveralls. The existing CircleCI config is left in place. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ composer.json | 3 +-- 2 files changed, 39 insertions(+), 2 deletions(-) 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..178d36f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php-version: + - "7.4" + - "8.0" + - "8.1" + - "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 diff --git a/composer.json b/composer.json index ed7cdd8..d788ab1 100644 --- a/composer.json +++ b/composer.json @@ -13,8 +13,7 @@ "packaged/helpers": "^1.0||^2.0" }, "require-dev": { - "phpunit/phpunit": "~8.0", - "satooshi/php-coveralls": "~1.0.0" + "phpunit/phpunit": "~8.0" }, "autoload": { "psr-4": {