Skip to content

Commit bf12592

Browse files
Merge pull request #103 from davidhsianturi/laravel8-support
Add Laravel 8 support
2 parents bca93f0 + 482beda commit bf12592

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [7.2, 7.3, 7.4]
17-
laravel: [^6.0, ^7.0]
16+
php: [7.3, 7.4]
17+
laravel: [^6.0, ^7.0, ^8.0]
1818

1919
name: P${{ matrix.php }} - L${{ matrix.laravel }}
2020

@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/checkout@v2
2424

2525
- name: Cache dependencies
26-
uses: actions/cache@v1
26+
uses: actions/cache@v2
2727
with:
2828
path: ~/.composer/cache/files
2929
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
@@ -33,10 +33,13 @@ jobs:
3333
with:
3434
php-version: ${{ matrix.php }}
3535
extensions: dom, curl, libxml, mbstring, zip
36+
tools: composer:v2
3637
coverage: none
3738

3839
- name: Install dependencies
39-
run: composer require "illuminate/contracts=${{ matrix.laravel }}" --prefer-dist --no-interaction --no-suggest
40+
run: |
41+
composer require "illuminate/contracts=${{ matrix.laravel }}" --no-update
42+
composer update --prefer-dist --no-interaction --no-suggest
4043
4144
- name: Execute tests
4245
run: vendor/bin/phpunit --verbose

composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.2",
20-
"illuminate/console": "^6.0|^7.0",
21-
"illuminate/routing": "^6.0|^7.0",
22-
"illuminate/support": "^6.0|^7.0",
23-
"mpociot/documentarian": "^0.4.0"
19+
"php": "^7.3",
20+
"illuminate/console": "^6.0|^7.0|^8.0",
21+
"illuminate/routing": "^6.0|^7.0|^8.0",
22+
"illuminate/support": "^6.0|^7.0|^8.0",
23+
"mpociot/documentarian": "dev-master"
2424
},
2525
"require-dev": {
26+
"laravel/legacy-factories": "^1.0.5",
2627
"laravel/sanctum": "^2.0",
27-
"orchestra/testbench": "^4.0|^5.0"
28+
"orchestra/testbench": "^4.0|^5.0|^6.0"
2829
},
2930
"autoload": {
3031
"psr-4": {

0 commit comments

Comments
 (0)