File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -558,11 +558,8 @@ jobs:
558558 - ${{ startsWith(inputs.PRIMARY_PHP_VERSION, '7') && '7.4' || inputs.PRIMARY_PHP_VERSION }}
559559 db :
560560 - postgres
561- type :
562- - unit
563- - functional
564561
565- name : PHP ${{ matrix.php }} - Windows - ${{ matrix.type }}
562+ name : PHP ${{ matrix.php }} - Windows
566563
567564 steps :
568565 - name : Prepare git for Windows
@@ -677,12 +674,17 @@ jobs:
677674 working-directory : .\phpBB3
678675
679676 - name : Run unit tests
680- if : ${{ matrix.type == 'unit' }}
681- run : phpBB/vendor/bin/phpunit --configuration phpBB/ext/$env:EXTNAME/.github/phpunit-psql-windows-github.xml --bootstrap ./tests/bootstrap.php --verbose --stop-on-error --exclude-group functional
682- working-directory : .\phpBB3
677+ run : |
678+ $extraArgs = ""
679+ if ($env:FUNCTIONAL_TESTS -eq "0") {
680+ $extraArgs = "--exclude-group functional"
681+ }
683682
684- - name : Run functional tests
685- if : ${{ matrix.type == 'functional' && env.FUNCTIONAL_TESTS == '1' }}
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
683+ phpBB/vendor/bin/phpunit `
684+ --configuration phpBB/ext/$env:EXTNAME/.github/phpunit-psql-windows-github.xml `
685+ --bootstrap ./tests/bootstrap.php `
686+ --verbose `
687+ --stop-on-error `
688+ $extraArgs
687689 working-directory : .\phpBB3
688690 # END IIS & PostgreSQL on Windows Tests Job
You can’t perform that action at this time.
0 commit comments