@@ -278,7 +278,7 @@ jobs:
278
278
279
279
e2e-tests :
280
280
name : " E2E tests"
281
- runs-on : " ubuntu-latest "
281
+ runs-on : ${{ matrix.os }}
282
282
timeout-minutes : 60
283
283
284
284
strategy :
@@ -287,82 +287,105 @@ jobs:
287
287
- script : " bin/phpstan analyse -l 8 -a tests/e2e/data/timecop.php -c tests/e2e/data/empty.neon tests/e2e/data/timecop.php"
288
288
tools : " pecl"
289
289
extensions : " timecop-beta"
290
+ os : " ubuntu-latest"
290
291
- script : " bin/phpstan analyse -l 8 -a tests/e2e/data/soap.php -c tests/e2e/data/empty.neon tests/e2e/data/soap.php"
291
292
extensions : " soap"
293
+ os : " ubuntu-latest"
292
294
- script : " bin/phpstan analyse -l 8 -a tests/e2e/data/soap.php -c tests/e2e/data/empty.neon tests/e2e/data/soap.php"
293
295
extensions : " "
296
+ os : " ubuntu-latest"
294
297
- script : " bin/phpstan analyse -l 8 tests/e2e/anon-class/Granularity.php"
295
298
extensions : " "
299
+ os : " ubuntu-latest"
296
300
- script : " bin/phpstan analyse -l 8 e2e/phpstan-phpunit-190/test.php -c e2e/phpstan-phpunit-190/test.neon"
297
301
extensions : " "
302
+ os : " ubuntu-latest"
298
303
- script : " bin/phpstan analyse e2e/only-files-not-analysed-trait/src -c e2e/only-files-not-analysed-trait/ignore.neon"
299
304
extensions : " "
305
+ os : " ubuntu-latest"
300
306
- script : " bin/phpstan analyse e2e/only-files-not-analysed-trait/src/Foo.php e2e/only-files-not-analysed-trait/src/BarTrait.php -c e2e/only-files-not-analysed-trait/no-ignore.neon"
301
307
extensions : " "
308
+ os : " ubuntu-latest"
302
309
- script : |
303
310
cd e2e/baseline-uninit-prop-trait
304
311
../../bin/phpstan analyse --debug --configuration test-no-baseline.neon --generate-baseline test-baseline.neon
305
312
../../bin/phpstan analyse --debug --configuration test.neon
313
+ os: "ubuntu-latest"
306
314
- script : |
307
315
cd e2e/baseline-uninit-prop-trait
308
316
../../bin/phpstan analyse --configuration test-no-baseline.neon --generate-baseline test-baseline.neon
309
317
../../bin/phpstan analyse --configuration test.neon
318
+ os: "ubuntu-latest"
310
319
- script : |
311
320
cd e2e/discussion-11362
312
321
composer install
313
322
../../bin/phpstan
323
+ os: "ubuntu-latest"
314
324
- script : |
315
325
cd e2e/bug-11819
316
326
../../bin/phpstan
327
+ os: "ubuntu-latest"
317
328
- script : |
318
329
cd e2e/composer-and-phpstan-version-config
319
330
composer install --ignore-platform-reqs
320
331
../../bin/phpstan analyze test.php --level=0
332
+ os: "ubuntu-latest"
321
333
- script : |
322
334
cd e2e/composer-max-version
323
335
composer install
324
336
../../bin/phpstan analyze test.php --level=0
337
+ os: "ubuntu-latest"
325
338
- script : |
326
339
cd e2e/composer-min-max-version
327
340
composer install
328
341
../../bin/phpstan analyze test.php --level=0
342
+ os: "ubuntu-latest"
329
343
- script : |
330
344
cd e2e/composer-min-open-end-version
331
345
composer install
332
346
../../bin/phpstan analyze test.php --level=0
347
+ os: "ubuntu-latest"
333
348
- script : |
334
349
cd e2e/composer-min-version-v5
335
350
composer install --ignore-platform-reqs
336
351
../../bin/phpstan analyze test.php --level=0
352
+ os: "ubuntu-latest"
337
353
- script : |
338
354
cd e2e/composer-min-version-v7
339
355
composer install --ignore-platform-reqs
340
356
../../bin/phpstan analyze test.php --level=0
357
+ os: "ubuntu-latest"
341
358
- script : |
342
359
cd e2e/composer-min-version
343
360
composer install
344
361
../../bin/phpstan analyze test.php --level=0
362
+ os: "ubuntu-latest"
345
363
- script : |
346
364
cd e2e/composer-no-versions
347
365
composer install
348
366
../../bin/phpstan analyze test.php --level=0
367
+ os: "ubuntu-latest"
349
368
- script : |
350
369
cd e2e/composer-version-config-invalid
351
370
OUTPUT=$(../bashunit -a exit_code "1" ../../bin/phpstan)
352
371
echo "$OUTPUT"
353
372
../bashunit -a contains 'Invalid configuration' "$OUTPUT"
354
373
../bashunit -a contains 'Invalid PHP version range: phpVersion.max should be greater or equal to phpVersion.min.' "$OUTPUT"
374
+ os: "ubuntu-latest"
355
375
- script : |
356
376
cd e2e/composer-version-config-patch
357
377
composer install --ignore-platform-reqs
358
378
../../bin/phpstan analyze test.php --level=0
379
+ os: "ubuntu-latest"
359
380
- script : |
360
381
cd e2e/composer-version-config
361
382
composer install
362
383
../../bin/phpstan analyze test.php --level=0
384
+ os: "ubuntu-latest"
363
385
- script : |
364
386
cd e2e/bug-12972
365
387
../../bin/phpstan analyze
388
+ os: "macos-latest"
366
389
367
390
steps :
368
391
- name : " Checkout"
0 commit comments