Skip to content

Commit

Permalink
Support Laravel 8 (#222)
Browse files Browse the repository at this point in the history
* Update for laravel 8

* Update readme
  • Loading branch information
joedixon authored Jun 27, 2022
1 parent 7659eaa commit f49bd5b
Show file tree
Hide file tree
Showing 8 changed files with 5,553 additions and 2,201 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,7 @@ on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4]
os: [ubuntu-latest]
laravel: [6.*, 7.*]
include:
- laravel: 6.*
testbench: 4.*
- laravel: 7.*
testbench: 5.*

name: PHP${{ matrix.php }} - ${{ matrix.dependency-version }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
Expand All @@ -26,14 +13,12 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: 8.0
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none

- name: Install Composer dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest
run: composer install --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
}
],
"require": {
"php": "^7.2|^7.3|^7.4",
"illuminate/support": "^6.0|^7.0"
"php": "^8.0",
"illuminate/support": "^8.0",
"laravel/legacy-factories": "^1.3"
},
"require-dev": {
"orchestra/testbench": "^4.0",
"phpunit/phpunit": "^8.0",
"orchestra/testbench": "^6.0",
"phpunit/phpunit": "^9.0",
"mockery/mockery": "^1.0.0"
},
"autoload": {
Expand Down
Loading

0 comments on commit f49bd5b

Please sign in to comment.