Skip to content

Commit 496d638

Browse files
committed
Update e2e-tests.yml
1 parent 97551d2 commit 496d638

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ jobs:
278278

279279
e2e-tests:
280280
name: "E2E tests"
281-
runs-on: "ubuntu-latest"
281+
runs-on: ${{ matrix.os }}
282282
timeout-minutes: 60
283283

284284
strategy:
@@ -287,82 +287,105 @@ jobs:
287287
- script: "bin/phpstan analyse -l 8 -a tests/e2e/data/timecop.php -c tests/e2e/data/empty.neon tests/e2e/data/timecop.php"
288288
tools: "pecl"
289289
extensions: "timecop-beta"
290+
os: "ubuntu-latest"
290291
- script: "bin/phpstan analyse -l 8 -a tests/e2e/data/soap.php -c tests/e2e/data/empty.neon tests/e2e/data/soap.php"
291292
extensions: "soap"
293+
os: "ubuntu-latest"
292294
- script: "bin/phpstan analyse -l 8 -a tests/e2e/data/soap.php -c tests/e2e/data/empty.neon tests/e2e/data/soap.php"
293295
extensions: ""
296+
os: "ubuntu-latest"
294297
- script: "bin/phpstan analyse -l 8 tests/e2e/anon-class/Granularity.php"
295298
extensions: ""
299+
os: "ubuntu-latest"
296300
- script: "bin/phpstan analyse -l 8 e2e/phpstan-phpunit-190/test.php -c e2e/phpstan-phpunit-190/test.neon"
297301
extensions: ""
302+
os: "ubuntu-latest"
298303
- script: "bin/phpstan analyse e2e/only-files-not-analysed-trait/src -c e2e/only-files-not-analysed-trait/ignore.neon"
299304
extensions: ""
305+
os: "ubuntu-latest"
300306
- 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"
301307
extensions: ""
308+
os: "ubuntu-latest"
302309
- script: |
303310
cd e2e/baseline-uninit-prop-trait
304311
../../bin/phpstan analyse --debug --configuration test-no-baseline.neon --generate-baseline test-baseline.neon
305312
../../bin/phpstan analyse --debug --configuration test.neon
313+
os: "ubuntu-latest"
306314
- script: |
307315
cd e2e/baseline-uninit-prop-trait
308316
../../bin/phpstan analyse --configuration test-no-baseline.neon --generate-baseline test-baseline.neon
309317
../../bin/phpstan analyse --configuration test.neon
318+
os: "ubuntu-latest"
310319
- script: |
311320
cd e2e/discussion-11362
312321
composer install
313322
../../bin/phpstan
323+
os: "ubuntu-latest"
314324
- script: |
315325
cd e2e/bug-11819
316326
../../bin/phpstan
327+
os: "ubuntu-latest"
317328
- script: |
318329
cd e2e/composer-and-phpstan-version-config
319330
composer install --ignore-platform-reqs
320331
../../bin/phpstan analyze test.php --level=0
332+
os: "ubuntu-latest"
321333
- script: |
322334
cd e2e/composer-max-version
323335
composer install
324336
../../bin/phpstan analyze test.php --level=0
337+
os: "ubuntu-latest"
325338
- script: |
326339
cd e2e/composer-min-max-version
327340
composer install
328341
../../bin/phpstan analyze test.php --level=0
342+
os: "ubuntu-latest"
329343
- script: |
330344
cd e2e/composer-min-open-end-version
331345
composer install
332346
../../bin/phpstan analyze test.php --level=0
347+
os: "ubuntu-latest"
333348
- script: |
334349
cd e2e/composer-min-version-v5
335350
composer install --ignore-platform-reqs
336351
../../bin/phpstan analyze test.php --level=0
352+
os: "ubuntu-latest"
337353
- script: |
338354
cd e2e/composer-min-version-v7
339355
composer install --ignore-platform-reqs
340356
../../bin/phpstan analyze test.php --level=0
357+
os: "ubuntu-latest"
341358
- script: |
342359
cd e2e/composer-min-version
343360
composer install
344361
../../bin/phpstan analyze test.php --level=0
362+
os: "ubuntu-latest"
345363
- script: |
346364
cd e2e/composer-no-versions
347365
composer install
348366
../../bin/phpstan analyze test.php --level=0
367+
os: "ubuntu-latest"
349368
- script: |
350369
cd e2e/composer-version-config-invalid
351370
OUTPUT=$(../bashunit -a exit_code "1" ../../bin/phpstan)
352371
echo "$OUTPUT"
353372
../bashunit -a contains 'Invalid configuration' "$OUTPUT"
354373
../bashunit -a contains 'Invalid PHP version range: phpVersion.max should be greater or equal to phpVersion.min.' "$OUTPUT"
374+
os: "ubuntu-latest"
355375
- script: |
356376
cd e2e/composer-version-config-patch
357377
composer install --ignore-platform-reqs
358378
../../bin/phpstan analyze test.php --level=0
379+
os: "ubuntu-latest"
359380
- script: |
360381
cd e2e/composer-version-config
361382
composer install
362383
../../bin/phpstan analyze test.php --level=0
384+
os: "ubuntu-latest"
363385
- script: |
364386
cd e2e/bug-12972
365387
../../bin/phpstan analyze
388+
os: "macos-latest"
366389
367390
steps:
368391
- name: "Checkout"

0 commit comments

Comments
 (0)