Skip to content

Commit 94f3b30

Browse files
committed
Combine windows unit and functional (again)
1 parent 54e4f4d commit 94f3b30

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/tests.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)