Skip to content

Commit

Permalink
add support for laravel 10 (#14)
Browse files Browse the repository at this point in the history
* add support for laravel 10

* fix phpunit
  • Loading branch information
norbybaru authored Mar 29, 2023
1 parent c993629 commit a6614c4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 23 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@ jobs:
fail-fast: false
matrix:
php: [8.0, 8.1]
laravel: [8.*, 9.*]
laravel: [8.*, 9.*, 10.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 8.*
testbench: ^6.0
exclude:
- laravel: 10.*
php: 8.0

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

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -38,7 +41,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache Composer dependencies
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
# Use composer.json for key, if composer.lock is not committed.
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
*.lock
*.bak
/.env
/.phpunit.result.cache
/.vscode
/*.cache
/build
/vendor
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
],
"require": {
"php": "^8.0",
"illuminate/support": "^8.0|^9.0",
"aws/aws-sdk-php": "^3.209"
"aws/aws-sdk-php": "^3.209",
"illuminate/support": "^8.0|^9.52|^10.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand All @@ -46,8 +46,8 @@
"require-dev": {
"guzzlehttp/guzzle": "^7.4",
"nunomaduro/larastan": "^1.0|^2.0",
"orchestra/testbench": "^6.24|^7.0",
"phpunit/phpunit": "^9.5",
"orchestra/testbench": "^6.24|^7.0|^8.0",
"phpunit/phpunit": "^9.5|^10.0",
"vlucas/phpdotenv": "^5.4"
}
}
33 changes: 17 additions & 16 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<?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">
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
bootstrap="vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit a6614c4

Please sign in to comment.