Skip to content

Commit

Permalink
Merge pull request #2 from Codeception/php8
Browse files Browse the repository at this point in the history
Support PHP 8
  • Loading branch information
Naktibalda authored Nov 25, 2020
2 parents 6f866c7 + b6e5887 commit c9f65ce
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]

steps:
- name: Checkout code
Expand All @@ -37,12 +37,19 @@ jobs:
extensions: pdo, mysql, zip
coverage: none

- name: Downgrade to composer v1
run: composer self-update --1

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: |
composer install --prefer-dist --no-progress --no-interaction --no-suggest
- name: Install dependencies on PHP7
if: matrix.php < 8
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest

- name: Install dependencies on PHP8
if: matrix.php == 8.0
run: composer install --prefer-dist --no-progress --no-interaction --ignore-platform-reqs

- name: Checkout Laminas tests
uses: actions/checkout@v2
Expand All @@ -52,10 +59,18 @@ jobs:
ref: 'master'
submodules: recursive

- name: Install dependencies of Laminas tests
run: |
composer update --no-dev --prefer-dist --no-interaction
php vendor/bin/doctrine-module orm:schema-tool:create
- name: Install dependencies of Laminas tests on PHP 7
if: matrix.php < 8
run: composer update --no-dev --prefer-dist --no-interaction
working-directory: framework-tests

- name: Install dependencies of Laminas tests on PHP 8
if: matrix.php == 8.0
run: composer update --no-dev --prefer-dist --no-interaction --ignore-platform-reqs
working-directory: framework-tests

- name: Create database schema
run: php vendor/bin/doctrine-module orm:schema-tool:create
working-directory: framework-tests

- name: Run test suite
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"minimum-stability": "RC",
"require": {
"php": "^5.6 | ^7.0",
"php": "^5.6 | ^7.0 | ^8.0",
"codeception/lib-innerbrowser": "^1.0",
"codeception/codeception": "^4.0",
"laminas/laminas-console": "^2.8.0",
Expand Down

0 comments on commit c9f65ce

Please sign in to comment.