Skip to content

Commit d8d3268

Browse files
authored
Merge pull request #6 from Codeception/php8
Support PHP 8
2 parents 1cbc778 + 6d8ee59 commit d8d3268

5 files changed

Lines changed: 20 additions & 1337 deletions

File tree

.github/workflows/main.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
php: [7.1, 7.2, 7.3, 7.4]
11+
php: [7.1, 7.2, 7.3, 7.4, 8.0]
1212

1313
steps:
1414
- name: Checkout code
@@ -27,16 +27,31 @@ jobs:
2727
path: framework-tests
2828
submodules: recursive
2929

30-
- name: Install Mezzio Sample
30+
- name: Downgrade to composer v1
31+
if: matrix.php < 7.4
32+
run: composer self-update --1
33+
34+
- name: Install Mezzio Sample on PHP 7
35+
if: matrix.php < 8
3136
run: composer update --no-dev --prefer-dist --no-interaction
3237
working-directory: framework-tests
3338

39+
- name: Install Mezzio Sample on PHP 8
40+
if: matrix.php == 8.0
41+
run: composer update --no-dev --prefer-dist --no-interaction --ignore-platform-req=php
42+
working-directory: framework-tests
43+
3444
- name: Validate composer.json and composer.lock
3545
run: composer validate
3646

37-
- name: Install dependencies
47+
- name: Install dependencies on PHP 7
48+
if: matrix.php < 8
3849
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
3950

51+
- name: Install dependencies on PHP 8
52+
if: matrix.php == 8.0
53+
run: composer install --prefer-dist --no-progress --no-interaction --ignore-platform-req=php
54+
4055
- name: Run test suite
4156
run: |
4257
php vendor/bin/codecept build -c framework-tests

Robofile.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212
],
1313
"minimum-stability": "RC",
1414
"require": {
15-
"php": ">=5.6.0 <8.0",
15+
"php": ">=5.6.0 <9.0",
1616
"codeception/lib-innerbrowser": "^1.0",
1717
"codeception/codeception": "^4.0"
1818
},
1919
"require-dev": {
20-
"codeception/util-robohelpers": "dev-master",
2120
"codeception/module-rest": "dev-master",
2221
"mezzio/mezzio": "~2.0 | ~3.0"
2322
},

0 commit comments

Comments
 (0)