Skip to content

Commit 981a144

Browse files
Add Laravel 10 support (#51)
* Add Laravel 10 support * Use phpunit 10 * Update phpunit.xml * Triggering CI on PR --------- Co-authored-by: Matthew Inamdar <matt@inamdar.co.uk>
1 parent 315fe56 commit 981a144

File tree

4 files changed

+32
-35
lines changed

4 files changed

+32
-35
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Tests
22

3-
on: push
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
68
build_and_test:
@@ -10,7 +12,7 @@ jobs:
1012

1113
strategy:
1214
matrix:
13-
php: ["8.0", "8.1"]
15+
php: ["8.1", "8.2"]
1416

1517
steps:
1618
- name: Setup PHP

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,19 @@ Both `v1` and `v4` IDs are supported out of the box, however should you need
4848
Reference the table below for the correct version to use in conjunction with the
4949
version of Laravel you have installed:
5050

51-
| Laravel | This package |
52-
| ------- | ------------ |
53-
| `v5.8.*` | `v1.*` |
54-
| `v6.*` | `v6.*` |
55-
| `v7.*` | `v7.*` |
56-
| `v8.*` | `v8.*` |
57-
| `v9.*` | `v9.*` |
51+
| Laravel | This package |
52+
|----------|--------------|
53+
| `v5.8.*` | `v1.*` |
54+
| `v6.*` | `v6.*` |
55+
| `v7.*` | `v7.*` |
56+
| `v8.*` | `v8.*` |
57+
| `v9.*` | `v9.*` |
58+
| `v10.*` | `v10.*` |
5859

5960
You can install the package via composer:
6061

6162
```bash
62-
composer require goldspecdigital/laravel-eloquent-uuid:^9.0
63+
composer require goldspecdigital/laravel-eloquent-uuid:^10.0
6364
```
6465

6566
## Usage

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
}
2828
},
2929
"require": {
30-
"php": "^8.0",
31-
"laravel/framework": "^9.0"
30+
"php": "^8.1",
31+
"laravel/framework": "^10.0"
3232
},
3333
"require-dev": {
3434
"ext-pdo": "*",
35-
"orchestra/testbench": "^7.0",
36-
"phpunit/phpunit": "^9.5.10"
35+
"orchestra/testbench": "^8.0",
36+
"phpunit/phpunit": "^10.0"
3737
},
3838
"config": {
3939
"sort-packages": true

phpunit.xml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
<phpunit
2-
bootstrap="vendor/autoload.php"
3-
colors="true"
4-
convertErrorsToExceptions="true"
5-
convertNoticesToExceptions="true"
6-
convertWarningsToExceptions="true"
7-
stopOnFailure="true"
8-
>
9-
<testsuites>
10-
<testsuite name="GoldSpec Digital Test Suite">
11-
<directory>tests</directory>
12-
</testsuite>
13-
</testsuites>
14-
<filter>
15-
<whitelist>
16-
<directory suffix=".php">src/</directory>
17-
</whitelist>
18-
</filter>
19-
<php>
20-
<env name="DB_CONNECTION" value="testing"/>
21-
</php>
1+
<?xml version="1.0"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" stopOnFailure="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">src/</directory>
6+
</include>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="GoldSpec Digital Test Suite">
10+
<directory>tests</directory>
11+
</testsuite>
12+
</testsuites>
13+
<php>
14+
<env name="DB_CONNECTION" value="testing"/>
15+
</php>
2216
</phpunit>

0 commit comments

Comments
 (0)