|
46 | 46 | required: false |
47 | 47 | type: string |
48 | 48 | default: '1' |
| 49 | + RUN_FUNCTIONAL_TESTS: |
| 50 | + required: false |
| 51 | + type: string |
| 52 | + default: '1' |
49 | 53 | RUN_NPM_INSTALL: |
50 | 54 | required: false |
51 | 55 | type: string |
|
73 | 77 | IMAGE_ICC: ${{ inputs.IMAGE_ICC == '1' && '1' || '0' }} |
74 | 78 | EPV: ${{ inputs.EPV == '1' && '1' || '0' }} |
75 | 79 | EXECUTABLE_FILES: ${{ inputs.EXECUTABLE_FILES == '1' && '1' || '0' }} |
| 80 | + FUNCTIONAL_TESTS: ${{ inputs.RUN_FUNCTIONAL_TESTS == '1' && '1' || '0' }} |
76 | 81 | PHPBB_BRANCH: ${{ inputs.PHPBB_BRANCH }} |
77 | 82 |
|
78 | 83 | jobs: |
@@ -279,9 +284,16 @@ jobs: |
279 | 284 | run: | |
280 | 285 | if [ $COVERAGE == '1' ] |
281 | 286 | then |
282 | | - phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml --bootstrap ./tests/bootstrap.php --coverage-clover build/logs/clover.xml |
| 287 | + phpBB/vendor/bin/phpunit \ |
| 288 | + --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml \ |
| 289 | + --bootstrap ./tests/bootstrap.php \ |
| 290 | + --coverage-clover build/logs/clover.xml \ |
| 291 | + $([[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional") |
283 | 292 | else |
284 | | - phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml --bootstrap ./tests/bootstrap.php |
| 293 | + phpBB/vendor/bin/phpunit \ |
| 294 | + --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml \ |
| 295 | + --bootstrap ./tests/bootstrap.php \ |
| 296 | + $([[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional") |
285 | 297 | fi |
286 | 298 | working-directory: ./phpBB3 |
287 | 299 |
|
@@ -407,7 +419,11 @@ jobs: |
407 | 419 | - name: Run unit tests |
408 | 420 | env: |
409 | 421 | DB: ${{steps.database-type.outputs.db}} |
410 | | - run: phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml --bootstrap ./tests/bootstrap.php |
| 422 | + run: | |
| 423 | + phpBB/vendor/bin/phpunit \ |
| 424 | + --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml \ |
| 425 | + --bootstrap ./tests/bootstrap.php \ |
| 426 | + $([[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional") |
411 | 427 | working-directory: ./phpBB3 |
412 | 428 | # END PostgreSQL Job |
413 | 429 |
|
@@ -524,7 +540,11 @@ jobs: |
524 | 540 | - name: Run unit tests |
525 | 541 | env: |
526 | 542 | DB: ${{steps.database-type.outputs.db}} |
527 | | - run: phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml --bootstrap ./tests/bootstrap.php |
| 543 | + run: | |
| 544 | + phpBB/vendor/bin/phpunit \ |
| 545 | + --configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml \ |
| 546 | + --bootstrap ./tests/bootstrap.php \ |
| 547 | + $([[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional") |
528 | 548 | working-directory: ./phpBB3 |
529 | 549 | # END Other Tests Job |
530 | 550 |
|
@@ -662,7 +682,7 @@ jobs: |
662 | 682 | working-directory: .\phpBB3 |
663 | 683 |
|
664 | 684 | - name: Run functional tests |
665 | | - if: ${{ matrix.type == 'functional' }} |
| 685 | + if: ${{ matrix.type == 'functional' && env.FUNCTIONAL_TESTS == '1' }} |
666 | 686 | run: phpBB/vendor/bin/phpunit --configuration phpBB/ext/$env:EXTNAME/.github/phpunit-psql-windows-github.xml --bootstrap ./tests/bootstrap.php --verbose --stop-on-error --group functional |
667 | 687 | working-directory: .\phpBB3 |
668 | 688 | # END IIS & PostgreSQL on Windows Tests Job |
0 commit comments