15
15
windows :
16
16
name : x86 / minimal-exts / lowest-php
17
17
18
+ timeout-minutes : 15
19
+
18
20
defaults :
19
21
run :
20
22
shell : pwsh
75
77
"extension=php_sodium.dll" >> php.ini-max
76
78
Copy php.ini-max php.ini
77
79
cd ${{ github.workspace }}
78
- iwr -outf composer.phar https://getcomposer.org/download/latest-stable/composer.phar
79
80
80
81
- name : Install dependencies
81
82
id : setup
87
88
$env:COMPOSER_ROOT_VERSION=$env:SYMFONY_VERSION + ".x-dev"
88
89
89
90
php .github/build-packages.php HEAD^ $env:SYMFONY_VERSION src\Symfony\Bridge\PhpUnit
90
- php composer.phar update --no-progress --ansi
91
+ composer update --no-progress --ansi
91
92
92
93
- name : Install PHPUnit
93
94
run : |
@@ -108,21 +109,51 @@ jobs:
108
109
109
110
Copy c:\php\php.ini-min c:\php\php.ini
110
111
Remove-Item -Path src\Symfony\Bridge\PhpUnit -Recurse
111
- mv src\Symfony\Component\HttpClient\phpunit.xml.dist src\Symfony\Component\HttpClient\phpunit.xml
112
- php phpunit src\Symfony --exclude-group tty,benchmark,intl-data,network,transient-on-windows || ($x = 1)
113
- php phpunit src\Symfony\Component\HttpClient || ($x = 1)
114
112
115
- exit $x
113
+ $COMPONENTS = (Get-ChildItem -Path src -Include phpunit.xml.dist -Recurse).Directory.FullName | Resolve-Path -Relative
114
+ $COMPONENTS | ForEach-Object {
115
+ $cmd = "php phpunit --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows $_"
116
+ echo "+ $cmd"
117
+ $output = cmd /c $cmd
118
+ $ok = $LASTEXITCODE
119
+
120
+ if (!$ok -eq 0) {
121
+ echo $_
122
+ echo $output
123
+ echo "Job exited with: $ok"
124
+ Write-Error "KO $_"
125
+ } else {
126
+ #echo "::group::$_"
127
+ echo $_
128
+ echo $output
129
+ echo "OK $_"
130
+ #echo "::endgroup::"
131
+ }
132
+ }
116
133
117
134
- name : Run tests
118
- if : always() && steps.setup.outcome == 'success'
135
+ if : false && always() && steps.setup.outcome == 'success'
119
136
run : |
120
137
$env:Path = 'c:\php;' + $env:Path
121
138
$env:SYMFONY_PHPUNIT_SKIPPED_TESTS = 'phpunit.skipped'
122
- $x = 0
123
139
124
140
Copy c:\php\php.ini-max c:\php\php.ini
125
- php phpunit src\Symfony --exclude-group tty,benchmark,intl-data,network,transient-on-windows || ($x = 1)
126
- php phpunit src\Symfony\Component\HttpClient || ($x = 1)
127
141
128
- exit $x
142
+ $COMPONENTS = (Get-ChildItem -Path src -Include phpunit.xml.dist -Recurse).Directory.FullName | Resolve-Path -Relative
143
+ $COMPONENTS | ForEach-Object -Parallel {
144
+ $output = php phpunit --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows $_
145
+ $ok = $LASTEXITCODE
146
+
147
+ if (!$ok -eq 0) {
148
+ echo $_
149
+ echo $output
150
+ echo "Job exited with: $ok"
151
+ Write-Error "KO $_"
152
+ } else {
153
+ #echo "::group::$_"
154
+ echo $_
155
+ echo $output
156
+ echo "OK $_"
157
+ #echo "::endgroup::"
158
+ }
159
+ }
0 commit comments