From 248252926b26133deafd41b592c5f12faf4c0189 Mon Sep 17 00:00:00 2001 From: Danny van der Sluijs Date: Tue, 6 May 2025 21:38:03 +0200 Subject: [PATCH 1/4] ci: add 32-bits ci workflow --- .../continuous-integration-32-bit.yml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/continuous-integration-32-bit.yml diff --git a/.github/workflows/continuous-integration-32-bit.yml b/.github/workflows/continuous-integration-32-bit.yml new file mode 100644 index 00000000..3e541128 --- /dev/null +++ b/.github/workflows/continuous-integration-32-bit.yml @@ -0,0 +1,50 @@ +name: "Continuous Integration - 32-bits" + +on: + push: + branches: + - master + pull_request: + branches: + - master + +env: + COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist" + +jobs: + tests: + name: "PHP 8.4 - 32-bits" + + runs-on: ubuntu-latest + container: shivammathur/node:latest-i386 + + steps: + - name: "Checkout" + uses: "actions/checkout@v4" + + - name: "Install PHP" + uses: "shivammathur/setup-php@v2" + with: + coverage: "none" + extensions: "intl, zip" + ini-values: "memory_limit=-1, phar.readonly=0, error_reporting=E_ALL, display_errors=On" + php-version: "8.4" + tools: composer + + - name: Check PHP_INT_MAX + run: | + MAX=$(php -r "echo PHP_INT_MAX;") + if [ "$MAX" -ne 2147483647 ]; then + echo "Error: PHP is not 32-bit (PHP_INT_MAX is $MAX)" + exit 1 + fi + env: + MAX: "" + + - name: Install dependencies + run: | + git config --global --add safe.directory $(pwd) + composer install + + - name: Run tests + run: "composer test" \ No newline at end of file From 41ad9b9c9eeb87b0e2b27e067782e3d19b694b8c Mon Sep 17 00:00:00 2001 From: Danny van der Sluijs Date: Wed, 7 May 2025 21:38:06 +0200 Subject: [PATCH 2/4] docs: introduce 32 bits ci workflow on latest php version --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90ded89e..dd8164a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added extra breaking change to UPDATE-6.0.md regarding BaseConstraint::addError signature change ([#823](https://github.com/jsonrainbow/json-schema/pull/823) - Update constraint class to PHP 7.2 language level ([#824](https://github.com/jsonrainbow/json-schema/pull/824) +### Added +- Introduce 32 bits CI workflow on latest php version ([#825](https://github.com/jsonrainbow/json-schema/pull/825) ## [6.4.1] - 2025-04-04 ### Fixed From e04d6e8624b44c6e9af1b281b51739d122110124 Mon Sep 17 00:00:00 2001 From: Danny van der Sluijs Date: Wed, 7 May 2025 21:46:26 +0200 Subject: [PATCH 3/4] refactor: refactor to 32-bits (plural) --- ...ntegration-32-bit.yml => continuous-integration-32-bits.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{continuous-integration-32-bit.yml => continuous-integration-32-bits.yml} (94%) diff --git a/.github/workflows/continuous-integration-32-bit.yml b/.github/workflows/continuous-integration-32-bits.yml similarity index 94% rename from .github/workflows/continuous-integration-32-bit.yml rename to .github/workflows/continuous-integration-32-bits.yml index 3e541128..7c81766f 100644 --- a/.github/workflows/continuous-integration-32-bit.yml +++ b/.github/workflows/continuous-integration-32-bits.yml @@ -35,7 +35,7 @@ jobs: run: | MAX=$(php -r "echo PHP_INT_MAX;") if [ "$MAX" -ne 2147483647 ]; then - echo "Error: PHP is not 32-bit (PHP_INT_MAX is $MAX)" + echo "Error: PHP is not 32-bits (PHP_INT_MAX is $MAX)" exit 1 fi env: From d675b6529bb9a1112866212a665558be62c39fbd Mon Sep 17 00:00:00 2001 From: Danny van der Sluijs Date: Wed, 7 May 2025 21:47:34 +0200 Subject: [PATCH 4/4] fix: correct markdown issues --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd8164a8..99477738 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,11 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix objects are non-unique despite key order ([#819](https://github.com/jsonrainbow/json-schema/pull/819)) ### Changed -- Added extra breaking change to UPDATE-6.0.md regarding BaseConstraint::addError signature change ([#823](https://github.com/jsonrainbow/json-schema/pull/823) -- Update constraint class to PHP 7.2 language level ([#824](https://github.com/jsonrainbow/json-schema/pull/824) +- Added extra breaking change to UPDATE-6.0.md regarding BaseConstraint::addError signature change ([#823](https://github.com/jsonrainbow/json-schema/pull/823)) +- Update constraint class to PHP 7.2 language level ([#824](https://github.com/jsonrainbow/json-schema/pull/824)) ### Added -- Introduce 32 bits CI workflow on latest php version ([#825](https://github.com/jsonrainbow/json-schema/pull/825) +- Introduce 32 bits CI workflow on latest php version ([#825](https://github.com/jsonrainbow/json-schema/pull/825)) ## [6.4.1] - 2025-04-04 ### Fixed