Skip to content

Commit

Permalink
Merge pull request #45 from andersonls/improvement/support-php8
Browse files Browse the repository at this point in the history
Add support for php 8.*
  • Loading branch information
conveniadev authored Dec 22, 2022
2 parents 2b3defb + 33b5bb3 commit 5968db3
Show file tree
Hide file tree
Showing 4 changed files with 664 additions and 274 deletions.
2 changes: 1 addition & 1 deletion .docker/php.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-fpm
FROM php:8.1-fpm

COPY --from=composer /usr/bin/composer /usr/bin/composer

Expand Down
30 changes: 22 additions & 8 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,26 @@ jobs:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
dependency-versions:
- "lowest"
- "highest"

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: ${{ matrix.php-version }}
extensions: mbstring, dom, fileinfo
coverage: xdebug

- uses: actions/checkout@v3

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

- name: Cache Composer packages
id: composer-cache
Expand All @@ -31,8 +40,13 @@ jobs:
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Install composer dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependency-versions }}

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

- name: Run test suite
run: composer run-script test
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"require": {
"php": "^7.0"
"php": "^7.0|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
Expand Down
Loading

0 comments on commit 5968db3

Please sign in to comment.