Skip to content

Commit c832451

Browse files
authored
Merge pull request #5478 from LibreSign/fix/error-at-ci-with-php83
fix: error at CI with PHP 8.3
2 parents 9d9e19c + 1b84107 commit c832451

4 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/behat-mariadb.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ jobs:
109109
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, mysql, pdo_mysql
110110
coverage: none
111111
ini-file: development
112+
# Temporary workaround for missing pcntl_* in PHP 8.3
113+
ini-values: disable_functions=
112114
env:
113115
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114116

@@ -149,6 +151,12 @@ jobs:
149151
./occ app:enable --force notifications
150152
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/activity apps/activity
151153
./occ app:enable --force activity
154+
# guests app uses "main" branch instead of "master" for the latest
155+
branch="${{ matrix.server-versions }}"
156+
if [ "$branch" = "master" ]; then
157+
branch="main"
158+
fi
159+
git clone --depth 1 -b "$branch" https://github.com/nextcloud/guests apps/guests
152160
./occ app:enable --force guests
153161
./occ config:system:set mail_smtpport --value 1025 --type integer
154162
./occ config:system:set mail_smtphost --value mailhog

.github/workflows/behat-mysql.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ jobs:
114114
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
115115
coverage: none
116116
ini-file: development
117+
# Temporary workaround for missing pcntl_* in PHP 8.3
118+
ini-values: disable_functions=
117119
env:
118120
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119121

@@ -162,6 +164,12 @@ jobs:
162164
./occ app:enable --force notifications
163165
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/activity apps/activity
164166
./occ app:enable --force activity
167+
# guests app uses "main" branch instead of "master" for the latest
168+
branch="${{ matrix.server-versions }}"
169+
if [ "$branch" = "master" ]; then
170+
branch="main"
171+
fi
172+
git clone --depth 1 -b "$branch" https://github.com/nextcloud/guests apps/guests
165173
./occ app:enable --force guests
166174
./occ config:system:set mail_smtpport --value 1025 --type integer
167175
./occ config:system:set mail_smtphost --value mailhog

.github/workflows/behat-pgsql.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ jobs:
113113
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql
114114
coverage: none
115115
ini-file: development
116+
# Temporary workaround for missing pcntl_* in PHP 8.3
117+
ini-values: disable_functions=
116118
env:
117119
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118120

@@ -156,6 +158,12 @@ jobs:
156158
./occ app:enable --force notifications
157159
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/activity apps/activity
158160
./occ app:enable --force activity
161+
# guests app uses "main" branch instead of "master" for the latest
162+
branch="${{ matrix.server-versions }}"
163+
if [ "$branch" = "master" ]; then
164+
branch="main"
165+
fi
166+
git clone --depth 1 -b "$branch" https://github.com/nextcloud/guests apps/guests
159167
./occ app:enable --force guests
160168
./occ config:system:set mail_smtpport --value 1025 --type integer
161169
./occ config:system:set mail_smtphost --value mailhog

.github/workflows/behat-sqlite.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ jobs:
104104
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
105105
coverage: none
106106
ini-file: development
107+
# Temporary workaround for missing pcntl_* in PHP 8.3
108+
ini-values: disable_functions=
107109
env:
108110
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109111

@@ -147,6 +149,12 @@ jobs:
147149
./occ app:enable --force notifications
148150
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/activity apps/activity
149151
./occ app:enable --force activity
152+
# guests app uses "main" branch instead of "master" for the latest
153+
branch="${{ matrix.server-versions }}"
154+
if [ "$branch" = "master" ]; then
155+
branch="main"
156+
fi
157+
git clone --depth 1 -b "$branch" https://github.com/nextcloud/guests apps/guests
150158
./occ app:enable --force guests
151159
./occ config:system:set mail_smtpport --value 1025 --type integer
152160
./occ config:system:set mail_smtphost --value mailhog

0 commit comments

Comments
 (0)