Skip to content

Commit 54057a9

Browse files
authored
Merge pull request #2 from pascalbaljet/php-8.0
Add support for PHP 8.0
2 parents f996f45 + 9d2a483 commit 54057a9

File tree

3 files changed

+71
-64
lines changed

3 files changed

+71
-64
lines changed

.github/workflows/run-tests.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: run-tests
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [ 7.1, 7.2, 7.3, 7.4, 8.0 ]
12+
laravel: [ 5.6.*, 5.7.*, 5.8.*, 6.*, 7.*, 8.* ]
13+
dependency-version: [ prefer-stable ]
14+
include:
15+
- laravel: 5.6.*
16+
testbench: 3.6.*
17+
- laravel: 5.7.*
18+
testbench: 3.7.*
19+
- laravel: 5.8.*
20+
testbench: 3.8.*
21+
- laravel: 6.*
22+
testbench: 4.*
23+
- laravel: 7.*
24+
testbench: 5.*
25+
- laravel: 8.*
26+
testbench: 6.*
27+
exclude:
28+
- laravel: 8.*
29+
php: 7.1
30+
- laravel: 8.*
31+
php: 7.2
32+
- laravel: 7.*
33+
php: 7.1
34+
- laravel: 6.*
35+
php: 7.1
36+
- laravel: 5.8.*
37+
php: 8.0
38+
- laravel: 5.7.*
39+
php: 8.0
40+
- laravel: 5.6.*
41+
php: 8.0
42+
43+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
44+
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v2
48+
49+
- name: Cache dependencies
50+
uses: actions/cache@v2
51+
with:
52+
path: ~/.composer/cache/files
53+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
54+
55+
- name: Setup PHP
56+
uses: shivammathur/setup-php@v2
57+
with:
58+
php-version: ${{ matrix.php }}
59+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
60+
coverage: none
61+
62+
- name: Install dependencies
63+
run: |
64+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
65+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
66+
67+
- name: Execute tests
68+
run: vendor/bin/phpunit

.travis.yml

-61
This file was deleted.

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^7.1",
24+
"php": "^7.1|^8.0",
2525
"codezero/browser-locale": "^3.0",
2626
"illuminate/support": "^5.6|^6.0|^7.0|^8.0"
2727
},
2828
"require-dev": {
29-
"mockery/mockery": "^1.0",
29+
"mockery/mockery": "^1.3.3",
3030
"orchestra/testbench": "^3.6|^4.0|^5.0|^6.0",
3131
"phpunit/phpunit": "^7.0|^8.0|^9.0"
3232
},
@@ -57,4 +57,4 @@
5757
},
5858
"minimum-stability": "dev",
5959
"prefer-stable": true
60-
}
60+
}

0 commit comments

Comments
 (0)