From d9d9874e62d45ab7a8713cb57a3373ecdfbd36f7 Mon Sep 17 00:00:00 2001 From: Alexandre Tranchant Date: Sun, 4 Oct 2026 18:14:32 +0200 Subject: [PATCH 1/2] build: support Symfony Validator 5.4 through 8.x --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ composer.json | 2 +- docs/validators.md | 6 ++++++ tests/README.md | 21 ++++++++++++++++++++ 4 files changed, 69 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31486ba..02baa7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,47 @@ permissions: pull-requests: read jobs: + validator-compatibility: + name: Symfony Validator ${{ matrix.validator }} / PHP 8.4 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + validator: ['5.4', '6.4', '7.4', '8.1'] + env: + SYMFONY_VALIDATOR_VERSION: ${{ matrix.validator }} + steps: + - name: Checkout code + uses: actions/checkout@v7 + + - name: Set up PHP 8.4 + uses: shivammathur/setup-php@v2 + with: + php-version: '8.4' + coverage: pcov + tools: composer:v2 + extensions: mbstring + + - name: Install the selected Symfony Validator version + run: composer update --with "symfony/validator:${SYMFONY_VALIDATOR_VERSION}.*" --prefer-dist --no-interaction + + - name: Verify the installed Symfony Validator version + run: | + composer show symfony/validator + php <<'PHP' + Date: Sun, 4 Oct 2026 19:09:30 +0200 Subject: [PATCH 2/2] eco(ci): remove push paths-ignore from CI configuration and 8.1 test Validator 8.1 is already tested in the PHP 8.4 job. --- .github/workflows/ci.yml | 6 +----- tests/README.md | 13 ++----------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02baa7e..068c754 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,10 +3,6 @@ name: PHP CI on: schedule: - cron: '5 16 * * 3' - push: - paths-ignore: - - '**.md' - - LICENSE pull_request: paths-ignore: - '**.md' @@ -23,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - validator: ['5.4', '6.4', '7.4', '8.1'] + validator: ['5.4', '6.4', '7.4'] env: SYMFONY_VALIDATOR_VERSION: ${{ matrix.validator }} steps: diff --git a/tests/README.md b/tests/README.md index 32b6e27..af9afc1 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,9 +1,9 @@ -## Tests +# Tests The `Unit` directory contains the unit tests of the spatial types extension. The `Functional` directory contains functional tests. -### Running the tests +## Running the tests To run the tests, you need to install the dependencies using composer: @@ -35,12 +35,3 @@ composer test This does not change the supported range in `composer.json`. Run `composer update` without the temporary constraint to return to the default dependency resolution. - -### Docker - -If you use the docker environment, you can run the following commands: - -```bash -$ docker compose exec si-php8 composer install -$ docker compose exec si-php8 composer test -```