From a7232dcb99916a185de446e9858fc428ef2268b5 Mon Sep 17 00:00:00 2001 From: Danny van der Sluijs Date: Tue, 25 Mar 2025 13:12:30 +0100 Subject: [PATCH 1/2] ci: run PHPStan using the lowest and highest php version --- .github/workflows/phpstan.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 08980c0c..40f3cb95 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -12,11 +12,17 @@ env: COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist" jobs: - tests: + phpstan: name: "PHPStan" runs-on: ubuntu-latest + strategy: + matrix: + php-version: + - "7.2" + - "latest" + steps: - name: "Checkout" uses: "actions/checkout@v4" @@ -24,10 +30,10 @@ jobs: - name: "Install PHP" uses: "shivammathur/setup-php@v2" with: - coverage: "none" + php-version: "${{ matrix.php-version }}" extensions: "intl, zip" ini-values: "memory_limit=-1" - php-version: "7.2" + coverage: "none" - name: "Update dependencies" run: "composer update ${{ env.COMPOSER_FLAGS }}" From 57fa199a13ec8ed4915ac1195f96e199f8a013f8 Mon Sep 17 00:00:00 2001 From: Danny van der Sluijs Date: Tue, 25 Mar 2025 13:15:10 +0100 Subject: [PATCH 2/2] docs: add changelog entry --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82edeef2..d2eef081 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- Run PHPStan using the lowest and highest php version ([#811](https://github.com/jsonrainbow/json-schema/pull/811)) ## [6.3.1] - 2025-03-18 ### Fixed