@@ -276,12 +276,13 @@ jobs:
276276 static-analysis-with-result-cache :
277277 name : " PHPStan with result cache"
278278
279- runs-on : ubuntu-latest
279+ runs-on : ${{ matrix.operating-system }}
280280
281281 strategy :
282282 matrix :
283283 php-version :
284284 - " 7.4"
285+ operating-system : [ubuntu-latest, windows-latest]
285286
286287 steps :
287288 - name : " Checkout"
@@ -311,13 +312,31 @@ jobs:
311312 key : " result-cache-v2"
312313
313314 - name : " PHPStan with result cache"
315+ if : matrix.operating-system == 'ubuntu-latest'
314316 run : |
315- time vendor/bin/phing phpstan-result-cache
317+ vendor/bin/phing phpstan-result-cache
316318 bin/phpstan clear-result-cache -c build/phpstan.neon
317- time vendor/bin/phing phpstan-result-cache
319+ vendor/bin/phing phpstan-result-cache
318320 echo -e "\n\n" >> src/TrinaryLogic.php
319- time vendor/bin/phing phpstan-result-cache
320- time vendor/bin/phing phpstan-result-cache
321+ vendor/bin/phing phpstan-result-cache
322+ vendor/bin/phing phpstan-result-cache
323+
324+ - name : " PHPStan with result cache"
325+ if : matrix.operating-system == 'windows-latest'
326+ shell : cmd
327+ run : |
328+ vendor\bin\phing phpstan-result-cache
329+ bin\phpstan clear-result-cache -c build/phpstan.neon
330+ vendor\bin\phing phpstan-result-cache
331+ echo. >> src\TrinaryLogic.php
332+ vendor\bin\phing phpstan-result-cache
333+ vendor\bin\phing phpstan-result-cache
334+
335+ - name : " Upload result cache artifact"
336+ uses : actions/upload-artifact@v1
337+ with :
338+ name : resultCache.php
339+ path : tmp/resultCache.php
321340
322341 result-cache-e2e-tests :
323342 name : " Result cache E2E tests"
0 commit comments