Skip to content

Commit da3632e

Browse files
committed
support php 8
1 parent 72373b9 commit da3632e

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/run-tests.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest, windows-latest]
12-
php: [7.4]
12+
php: [8.0, 7.4]
1313
laravel: [8.*, 5.8.*, 6.*, 7.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
@@ -28,23 +28,17 @@ jobs:
2828
- name: Checkout code
2929
uses: actions/checkout@v2
3030

31-
- name: Cache dependencies
32-
uses: actions/cache@v2
33-
with:
34-
path: ~/.composer/cache/files
35-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
36-
3731
- name: Setup PHP
3832
uses: shivammathur/setup-php@v2
3933
with:
4034
php-version: ${{ matrix.php }}
41-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
35+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
4236
coverage: none
4337

4438
- name: Install dependencies
4539
run: |
4640
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
47-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
41+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
4842
4943
- name: Execute tests
5044
run: vendor/bin/phpunit

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"minimum-stability": "dev",
2222
"prefer-stable": true,
2323
"require": {
24-
"php": "^7.2",
24+
"php": "^7.2|^8.0",
2525
"illuminate/http": "^5.8|^6.0|^7.0|^8.0"
2626
},
2727
"require-dev": {

0 commit comments

Comments
 (0)