Skip to content

Commit a5977a0

Browse files
committed
Run tests on 32-bit PHP
1 parent 3993cdb commit a5977a0

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,17 @@ jobs:
122122

123123
- name: Run PHPUnit
124124
run: |
125-
docker run --platform linux/386 --rm \
125+
docker run --platform linux/386 --rm -i \
126126
-v ${{ github.workspace }}:/app \
127127
-w /app \
128128
-e CALCULATOR=${{ matrix.calculator }} \
129-
php:8.5-cli bash -c "\
130-
apt-get update && \
131-
apt-get install -y libgmp-dev unzip && \
132-
docker-php-ext-install gmp bcmath > /dev/null && \
133-
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
134-
composer install --no-interaction && \
135-
php -r 'echo \"PHP_INT_SIZE=\", PHP_INT_SIZE, \"\n\"; exit(PHP_INT_SIZE === 4 ? 0 : 1);' && \
136-
vendor/bin/phpunit"
129+
php:8.5-cli bash -e <<'EOF'
130+
apt-get update
131+
apt-get install -y libgmp-dev unzip
132+
docker-php-ext-install gmp bcmath > /dev/null
133+
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
134+
composer install --no-interaction
135+
php -r 'echo "PHP_INT_SIZE=", PHP_INT_SIZE, "\n";'
136+
php -r 'exit(PHP_INT_SIZE === 4 ? 0 : 1);'
137+
vendor/bin/phpunit
138+
EOF

0 commit comments

Comments
 (0)