Skip to content

Commit 40c4bf4

Browse files
committed
skip functional tests on 8.4
1 parent 3a8a0ae commit 40c4bf4

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
run: |
217217
if [ $COVERAGE == '1' ]
218218
then
219-
sed -n '1h;1!H;${;g;s/<\/php>/<\/php>\n\t<filter>\n\t\t<whitelist>\n\t\t\t<directory>..\/<\/directory>\n\t\t\t<exclude>\n\t\t\t\t<directory>..\/tests\/<\/directory>\n\t\t\t\t<directory>..\/language\/<\/directory>\n\t\t\t\t<directory>..\/migrations\/<\/directory>\n\t\t\t<\/exclude>\n\t\t<\/whitelist>\n\t<\/filter>/g;p;}' .github/phpunit-$DB-github.xml &> phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml
219+
sed -n '1h;1!H;${;g;s/<\/php>/<\/php>\n\t<coverage>\n\t\t<include>\n\t\t\t<directory>..\/<\/directory>\n\t\t<\/include>\n\t\t<exclude>\n\t\t\t<directory>..\/tests\/<\/directory>\n\t\t\t<directory>..\/language\/<\/directory>\n\t\t\t<directory>..\/migrations\/<\/directory>\n\t\t<\/exclude>\n\t<\/coverage>/g;p;}' .github/phpunit-$DB-github.xml &> phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml
220220
else
221221
mkdir -p phpBB/ext/$EXTNAME/.github && cp .github/phpunit* $_
222222
fi
@@ -226,10 +226,14 @@ jobs:
226226
env:
227227
DB: ${{steps.database-type.outputs.db}}
228228
COVERAGE: ${{ matrix.COVERAGE != 1 && '0' || '1' }}
229+
PHP_VERSION: ${{ matrix.php }}
229230
run: |
230-
if [ $COVERAGE == '1' ]
231+
if [ $COVERAGE = '1' ]
231232
then
232233
phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml --bootstrap ./tests/bootstrap.php --coverage-clover build/logs/clover.xml --testsuite 'phpBB Test Suite'
234+
elif [ "$PHP_VERSION" = "8.4" ]
235+
then
236+
phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml --bootstrap ./tests/bootstrap.php --testsuite 'phpBB Test Suite'
233237
else
234238
phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml --bootstrap ./tests/bootstrap.php
235239
fi
@@ -348,7 +352,14 @@ jobs:
348352
- name: Run unit tests
349353
env:
350354
DB: ${{steps.database-type.outputs.db}}
351-
run: phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml --bootstrap ./tests/bootstrap.php
355+
PHP_VERSION: ${{ matrix.php }}
356+
run: |
357+
if [ "$PHP_VERSION" = "8.4" ]
358+
then
359+
phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml --bootstrap ./tests/bootstrap.php --testsuite 'phpBB Test Suite'
360+
else
361+
phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml --bootstrap ./tests/bootstrap.php
362+
fi
352363
working-directory: ./phpBB3
353364
# END PostgreSQL Job
354365

0 commit comments

Comments
 (0)