Skip to content

Commit 9a29688

Browse files
authored
Merge pull request #48 from phpbb-extensions/3.3.x
Merge 3.3.x into master
2 parents ff3ca1d + cb2249a commit 9a29688

File tree

1 file changed

+32
-12
lines changed

1 file changed

+32
-12
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ jobs:
221221
with:
222222
path: phpBB3/phpBB/ext/${{ env.EXTNAME }}
223223

224-
- id: database-type
224+
- name: Set database type
225+
id: database-type
225226
env:
226227
MATRIX_DB: ${{ matrix.db }}
227228
run: |
@@ -311,11 +312,18 @@ jobs:
311312
DB: ${{steps.database-type.outputs.db}}
312313
COVERAGE: ${{ matrix.COVERAGE == '1' && '1' || '0' }}
313314
run: |
315+
args=()
316+
if [ "$COVERAGE" == "1" ]; then
317+
args+=(--coverage-clover build/logs/clover.xml)
318+
fi
319+
if [ "$FUNCTIONAL_TESTS" == "0" ]; then
320+
args+=(--exclude-group functional)
321+
fi
322+
314323
phpBB/vendor/bin/phpunit \
315324
--configuration "phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml" \
316325
--bootstrap ./tests/bootstrap.php \
317-
"$( [[ "$COVERAGE" == "1" ]] && echo "--coverage-clover build/logs/clover.xml" )" \
318-
"$( [[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional" )"
326+
"${args[@]}"
319327
working-directory: ./phpBB3
320328

321329
- name: Send code coverage
@@ -390,7 +398,8 @@ jobs:
390398
with:
391399
path: phpBB3/phpBB/ext/${{ env.EXTNAME }}
392400

393-
- id: database-type
401+
- name: Set database type
402+
id: database-type
394403
env:
395404
MATRIX_DB: ${{ matrix.db }}
396405
run: |
@@ -462,10 +471,15 @@ jobs:
462471
env:
463472
DB: ${{steps.database-type.outputs.db}}
464473
run: |
465-
phpBB/vendor/bin/phpunit \
466-
--configuration "phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml" \
467-
--bootstrap ./tests/bootstrap.php \
468-
"$( [[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional" )"
474+
args=()
475+
if [ "$FUNCTIONAL_TESTS" == "0" ]; then
476+
args+=(--exclude-group functional)
477+
fi
478+
479+
phpBB/vendor/bin/phpunit \
480+
--configuration "phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml" \
481+
--bootstrap ./tests/bootstrap.php \
482+
"${args[@]}"
469483
working-directory: ./phpBB3
470484
# END PostgreSQL Job
471485

@@ -526,7 +540,8 @@ jobs:
526540
with:
527541
path: phpBB3/phpBB/ext/${{ env.EXTNAME }}
528542

529-
- id: database-type
543+
- name: Set database type
544+
id: database-type
530545
env:
531546
MATRIX_DB: ${{ matrix.db }}
532547
run: |
@@ -603,10 +618,15 @@ jobs:
603618
env:
604619
DB: ${{steps.database-type.outputs.db}}
605620
run: |
621+
args=()
622+
if [ "$FUNCTIONAL_TESTS" == "0" ]; then
623+
args+=(--exclude-group functional)
624+
fi
625+
606626
phpBB/vendor/bin/phpunit \
607-
--configuration "phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml" \
608-
--bootstrap ./tests/bootstrap.php \
609-
"$( [[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional" )"
627+
--configuration "phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml" \
628+
--bootstrap ./tests/bootstrap.php \
629+
"${args[@]}"
610630
working-directory: ./phpBB3
611631
# END Other Tests Job
612632

0 commit comments

Comments
 (0)