Skip to content

Commit

Permalink
feat: add support for Laravel 10 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke authored Mar 1, 2023
1 parent 4d61e7e commit b5e3d14
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,25 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.0, 8.1]
laravel: [9.*, 8.*]
php: [8.0, 8.1, 8.2]
laravel: [10.*, 9.*, 8.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
testbench: ^7.22
- laravel: 8.*
testbench: ^6.23
testbench: ^6.25
exclude:
- laravel: 10.*
php: 8.0

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -35,5 +40,6 @@ jobs:
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"require": {
"php": "^8.0",
"loophp/phptree": "^2.5",
"illuminate/database": "^8.0|^9.0",
"illuminate/events": "^8.0|^9.0",
"illuminate/support": "^8.0|^9.0"
"illuminate/database": "^8.0|^9.0|^10.0",
"illuminate/events": "^8.0|^9.0|^10.0",
"illuminate/support": "^8.0|^9.0|^10.0"
},
"authors": [
{
Expand Down Expand Up @@ -37,6 +37,6 @@
"sort-packages": true
},
"require-dev": {
"orchestra/testbench": "^6.0|^7.0"
"orchestra/testbench": "^6.25.1|^7.22|^8.0"
}
}
6 changes: 1 addition & 5 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
>
Expand All @@ -14,4 +10,4 @@
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
</phpunit>

0 comments on commit b5e3d14

Please sign in to comment.