Skip to content

ci: add 32-bits ci workflow #11

ci: add 32-bits ci workflow

ci: add 32-bits ci workflow #11

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"
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
shell: php {0}
run: |
<?php
$max = PHP_INT_MAX;
if ($max !== 2_147_483_647) {
echo "Error: PHP is not 32-bit (PHP_INT_MAX is {$max})";
exit(1);
}
exit();
- name: Install dependencies
run: |
git config --global --add safe.directory $(pwd)
composer install
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Run tests
run: "composer test"