Skip to content

Commit f2009ea

Browse files
committed
Run 32-bit builds
1 parent d11b3a7 commit f2009ea

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,27 @@ on: [push, pull_request]
55
jobs:
66
run:
77
runs-on: ${{ matrix.operating-system }}
8+
container: shivammathur/node:latest-${{ matrix.arch }}
89
strategy:
910
matrix:
11+
arch: ["amd64", "i386"]
1012
operating-system: [ubuntu-latest]
1113
php-versions: ['7.2', '7.3', '7.4', '8.0']
12-
name: "PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-system }}"
14+
php-extensions: ['bcmath', 'gmp']
15+
name: "PHP ${{ matrix.php-versions }} (with ${{ matrix.php-extensions }}) test on ${{ matrix.operating-system }}/${{ matrix.arch }}"
1316
steps:
14-
- name: Setup PHP
15-
uses: shivammathur/setup-php@v2
16-
with:
17-
php-version: ${{ matrix.php-versions }}
18-
tools: composer, phpize
19-
20-
- name: Setup problem matchers for PHPUnit
21-
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
17+
- name: Install PHP
18+
run: |
19+
spc -U
20+
spc --php-version "${{ matrix.php-versions }}" \
21+
--extensions "mbstring, intl, ${{ matrix.php-extensions }}" \
22+
--ini-values "post_max_size=256M, max_execution_time=180" \
23+
--coverage "xdebug" \
24+
--tools "composer,phpize"
2225
2326
- name: Checkout
24-
uses: actions/checkout@v2
27+
# We use v1 due to https://github.com/actions/checkout/issues/334
28+
uses: actions/checkout@v1
2529
with:
2630
submodules: true
2731

0 commit comments

Comments
 (0)