Skip to content

Commit f722ca6

Browse files
committed
Simplify conditional run command
1 parent eca8714 commit f722ca6

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/tests.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -298,19 +298,11 @@ jobs:
298298
DB: ${{steps.database-type.outputs.db}}
299299
COVERAGE: ${{ matrix.COVERAGE == '1' && '1' || '0' }}
300300
run: |
301-
if [ $COVERAGE == '1' ]
302-
then
303-
phpBB/vendor/bin/phpunit \
304-
--configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml \
305-
--bootstrap ./tests/bootstrap.php \
306-
--coverage-clover build/logs/clover.xml \
307-
$([[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional")
308-
else
309-
phpBB/vendor/bin/phpunit \
310-
--configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml \
311-
--bootstrap ./tests/bootstrap.php \
312-
$([[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional")
313-
fi
301+
phpBB/vendor/bin/phpunit \
302+
--configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml \
303+
--bootstrap ./tests/bootstrap.php \
304+
$([[ "$COVERAGE" == "1" ]] && echo "--coverage-clover build/logs/clover.xml") \
305+
$([[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional")
314306
working-directory: ./phpBB3
315307

316308
- name: Send code coverage

0 commit comments

Comments
 (0)