Skip to content

Commit 0b7dd5e

Browse files
committed
ci(32bit): use custom image to run PHP unit tests on 32bit
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 0d34019 commit 0b7dd5e

File tree

1 file changed

+17
-28
lines changed

1 file changed

+17
-28
lines changed

.github/workflows/phpunit-32bits.yml

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@ jobs:
2525

2626
if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
2727

28-
container: shivammathur/node:latest-i386
29-
3028
strategy:
3129
fail-fast: false
3230
matrix:
33-
php-versions: ['8.1','8.3']
31+
php-versions: ["8.4"]
3432

3533
steps:
3634
- name: Checkout server
@@ -39,33 +37,24 @@ jobs:
3937
persist-credentials: false
4038
submodules: true
4139

42-
- name: Install tools
43-
run: |
44-
sudo apt-get update
45-
sudo apt-get install -y ffmpeg imagemagick libmagickcore-6.q16-3-extra
46-
47-
- name: Set up php ${{ matrix.php-versions }}
48-
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 #v2.35.4
49-
with:
50-
php-version: ${{ matrix.php-versions }}
51-
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, imagick, intl, json, libxml, mbstring, openssl, pcntl, posix, redis, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite, apcu, ldap
52-
coverage: none
53-
ini-file: development
54-
ini-values:
55-
apc.enabled=on, apc.enable_cli=on, disable_functions= # https://github.com/shivammathur/setup-php/discussions/573
56-
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
5940
- name: Set up dependencies
60-
run: composer i
41+
uses: docker://ghcr.io/nextcloud/continuous-integration-php8.4-32bit:latest
42+
with:
43+
args: /bin/sh -c "
44+
apt-get update &&
45+
apt-get install -y unzip &&
46+
git config --global --add safe.directory /github/workspace &&
47+
composer install --no-interaction"
6148

6249
- name: Set up Nextcloud
63-
env:
64-
DB_PORT: 4444
65-
run: |
66-
mkdir data
67-
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=autotest --database-pass=rootpassword --admin-user admin --admin-pass admin
68-
php -f tests/enable_all.php
50+
uses: docker://ghcr.io/nextcloud/continuous-integration-php8.4-32bit:latest
51+
with:
52+
args: /bin/sh -c "
53+
mkdir data &&
54+
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-user=autotest --database-pass=rootpassword --admin-user admin --admin-pass admin &&
55+
php -f tests/enable_all.php"
6956

7057
- name: PHPUnit
71-
run: composer run test -- --exclude-group PRIMARY-azure,PRIMARY-s3,PRIMARY-swift,Memcached,Redis,RoutingWeirdness
58+
uses: docker://ghcr.io/nextcloud/continuous-integration-php8.4-32bit:latest
59+
with:
60+
args: /bin/sh -c "composer run test -- --exclude-group PRIMARY-azure --exclude-group PRIMARY-s3 --exclude-group PRIMARY-swift --exclude-group Memcached --exclude-group Redis --exclude-group RoutingWeirdness"

0 commit comments

Comments
 (0)