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,54 @@ 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
+ echo ""
116
+ Get-Location
117
+
118
+ $cmd = "php phpunit --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows $_"
119
+ echo "+ $cmd"
120
+ $output = cmd /c $cmd
121
+ $ok = $LASTEXITCODE
122
+
123
+ if (!$ok -eq 0) {
124
+ echo $_
125
+ echo $output
126
+ echo "Job exited with: $ok"
127
+ Write-Error "KO $_"
128
+ } else {
129
+ #echo "::group::$_"
130
+ echo $_
131
+ echo $output
132
+ echo "OK $_"
133
+ #echo "::endgroup::"
134
+ }
135
+ }
116
136
117
137
- name : Run tests
118
- if : always() && steps.setup.outcome == 'success'
138
+ if : false && always() && steps.setup.outcome == 'success'
119
139
run : |
120
140
$env:Path = 'c:\php;' + $env:Path
121
141
$env:SYMFONY_PHPUNIT_SKIPPED_TESTS = 'phpunit.skipped'
122
- $x = 0
123
142
124
143
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
144
128
- exit $x
145
+ $COMPONENTS = (Get-ChildItem -Path src -Include phpunit.xml.dist -Recurse).Directory.FullName | Resolve-Path -Relative
146
+ $COMPONENTS | ForEach-Object -Parallel {
147
+ $output = php phpunit --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows $_
148
+ $ok = $LASTEXITCODE
149
+
150
+ if (!$ok -eq 0) {
151
+ echo $_
152
+ echo $output
153
+ echo "Job exited with: $ok"
154
+ Write-Error "KO $_"
155
+ } else {
156
+ #echo "::group::$_"
157
+ echo $_
158
+ echo $output
159
+ echo "OK $_"
160
+ #echo "::endgroup::"
161
+ }
162
+ }
0 commit comments