Skip to content

Commit de406c2

Browse files
committed
fix windows shell command
1 parent 94f3b30 commit de406c2

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -675,16 +675,18 @@ jobs:
675675

676676
- name: Run unit tests
677677
run: |
678-
$extraArgs = ""
678+
$args = @(
679+
"--configuration", "phpBB/ext/$env:EXTNAME/.github/phpunit-psql-windows-github.xml",
680+
"--bootstrap", "./tests/bootstrap.php",
681+
"--verbose",
682+
"--stop-on-error"
683+
)
684+
679685
if ($env:FUNCTIONAL_TESTS -eq "0") {
680-
$extraArgs = "--exclude-group functional"
686+
$args += "--exclude-group"
687+
$args += "functional"
681688
}
682689
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
690+
phpBB/vendor/bin/phpunit @args
689691
working-directory: .\phpBB3
690692
# END IIS & PostgreSQL on Windows Tests Job

0 commit comments

Comments
 (0)