Skip to content

Commit 95e5d61

Browse files
ci: add 32-bits ci workflow (#825)
This pull request introduces a new GitHub Actions workflow for continuous integration on a 32-bit system. The workflow is configured to run tests using PHP 8.4 and includes steps for environment setup and test execution. ### New Continuous Integration Workflow: * [`.github/workflows/continuous-integration-32-bit.yml`](diffhunk://#diff-913f89970936b1231274367aff0161dfd9c5ca768783bdf9d1e1961b59aad86eR1-R38): Added a new workflow named "Continuous Integration" that triggers on `push` and `pull_request` events targeting the `master` branch. It runs on `ubuntu-latest` using a 32-bit container (`shivammathur/node:latest-i386`) and sets up PHP 8.4 with specific extensions, tools, and configuration before executing tests via `composer test`. Fixes #818
1 parent 13c5e8d commit 95e5d61

File tree

2 files changed

+54
-2
lines changed

2 files changed

+54
-2
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "Continuous Integration - 32-bits"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
env:
12+
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
13+
14+
jobs:
15+
tests:
16+
name: "PHP 8.4 - 32-bits"
17+
18+
runs-on: ubuntu-latest
19+
container: shivammathur/node:latest-i386
20+
21+
steps:
22+
- name: "Checkout"
23+
uses: "actions/checkout@v4"
24+
25+
- name: "Install PHP"
26+
uses: "shivammathur/setup-php@v2"
27+
with:
28+
coverage: "none"
29+
extensions: "intl, zip"
30+
ini-values: "memory_limit=-1, phar.readonly=0, error_reporting=E_ALL, display_errors=On"
31+
php-version: "8.4"
32+
tools: composer
33+
34+
- name: Check PHP_INT_MAX
35+
run: |
36+
MAX=$(php -r "echo PHP_INT_MAX;")
37+
if [ "$MAX" -ne 2147483647 ]; then
38+
echo "Error: PHP is not 32-bits (PHP_INT_MAX is $MAX)"
39+
exit 1
40+
fi
41+
env:
42+
MAX: ""
43+
44+
- name: Install dependencies
45+
run: |
46+
git config --global --add safe.directory $(pwd)
47+
composer install
48+
49+
- name: Run tests
50+
run: "composer test"

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
- Fix objects are non-unique despite key order ([#819](https://github.com/jsonrainbow/json-schema/pull/819))
1111

1212
### Changed
13-
- Added extra breaking change to UPDATE-6.0.md regarding BaseConstraint::addError signature change ([#823](https://github.com/jsonrainbow/json-schema/pull/823)
14-
- Update constraint class to PHP 7.2 language level ([#824](https://github.com/jsonrainbow/json-schema/pull/824)
13+
- Added extra breaking change to UPDATE-6.0.md regarding BaseConstraint::addError signature change ([#823](https://github.com/jsonrainbow/json-schema/pull/823))
14+
- Update constraint class to PHP 7.2 language level ([#824](https://github.com/jsonrainbow/json-schema/pull/824))
1515

16+
### Added
17+
- Introduce 32 bits CI workflow on latest php version ([#825](https://github.com/jsonrainbow/json-schema/pull/825))
1618

1719
## [6.4.1] - 2025-04-04
1820
### Fixed

0 commit comments

Comments
 (0)