Skip to content

Commit 3c94a4e

Browse files
authored
Merge pull request #33 from justbetter/feature/laravel12
Laravel 12 support
2 parents b3e7f04 + da7fd9e commit 3c94a4e

File tree

5 files changed

+109
-73
lines changed

5 files changed

+109
-73
lines changed

.github/workflows/analyse.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.3]
13-
laravel: [10.*, 11.*]
12+
php: [8.3, 8.4]
13+
laravel: [11.*]
1414
stability: [prefer-stable]
1515
include:
16-
- laravel: 10.*
17-
testbench: 8.*
1816
- laravel: 11.*
1917
testbench: 9.*
2018

.github/workflows/coverage.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: coverage
2+
3+
on: ['push', 'pull_request']
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
os: [ubuntu-latest]
12+
php: [8.4]
13+
laravel: [11.*]
14+
stability: [prefer-stable]
15+
include:
16+
- laravel: 11.*
17+
testbench: 9.*
18+
19+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo, xdebug
30+
coverage: xdebug
31+
32+
- name: Install dependencies
33+
run: |
34+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
35+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
36+
- name: Execute tests
37+
run: composer coverage

.github/workflows/style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: 8.3
19+
php-version: 8.4
2020
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
2121
coverage: none
2222

.github/workflows/tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,12 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.1, 8.2, 8.3]
13-
laravel: [10.*, 11.*]
12+
php: [8.3, 8.4]
13+
laravel: [11.*]
1414
stability: [prefer-lowest, prefer-stable]
1515
include:
16-
- laravel: 10.*
17-
testbench: 8.*
1816
- laravel: 11.*
1917
testbench: 9.*
20-
exclude:
21-
- laravel: 11.*
22-
php: 8.1
2318

2419
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2520

composer.json

Lines changed: 67 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,70 @@
11
{
2-
"name": "justbetter/laravel-dynamics-client",
3-
"description": "A client to connect with Microsoft Dynamics",
4-
"type": "package",
5-
"license": "MIT",
6-
"homepage": "https://github.com/justbetter/laravel-dynamics-client",
7-
"authors": [
8-
{
9-
"name": "Vincent Boon",
10-
"email": "[email protected]",
11-
"role": "Developer"
12-
},
13-
{
14-
"name": "Ramon Rietdijk",
15-
"email": "[email protected]",
16-
"role": "Developer"
17-
}
18-
],
19-
"require": {
20-
"php": "^8.1",
21-
"justbetter/odata-client": "^1.3",
22-
"laravel/framework": "^10.0|^11.0"
23-
},
24-
"require-dev": {
25-
"larastan/larastan": "^2.9",
26-
"laravel/pint": "^1.15",
27-
"orchestra/testbench": "^8.0|^9.0",
28-
"phpstan/phpstan-mockery": "^1.1",
29-
"phpunit/phpunit": "^10.0"
30-
},
31-
"autoload": {
32-
"psr-4": {
33-
"JustBetter\\DynamicsClient\\": "src"
34-
}
35-
},
36-
"autoload-dev": {
37-
"psr-4": {
38-
"JustBetter\\DynamicsClient\\Tests\\": "tests"
39-
}
40-
},
41-
"scripts": {
42-
"test": "phpunit",
43-
"analyse": "phpstan",
44-
"style": "pint --test",
45-
"quality": [
46-
"@test",
47-
"@analyse",
48-
"@style"
2+
"name": "justbetter/laravel-dynamics-client",
3+
"description": "A client to connect with Microsoft Dynamics",
4+
"type": "package",
5+
"license": "MIT",
6+
"homepage": "https://github.com/justbetter/laravel-dynamics-client",
7+
"authors": [
8+
{
9+
"name": "Vincent Boon",
10+
"email": "[email protected]",
11+
"role": "Developer"
12+
},
13+
{
14+
"name": "Ramon Rietdijk",
15+
"email": "[email protected]",
16+
"role": "Developer"
17+
}
4918
],
50-
"fix-style": "pint"
51-
},
52-
"config": {
53-
"sort-packages": true
54-
},
55-
"extra": {
56-
"laravel": {
57-
"providers": [
58-
"JustBetter\\DynamicsClient\\ServiceProvider"
59-
]
60-
}
61-
},
62-
"minimum-stability": "dev",
63-
"prefer-stable": true
19+
"require": {
20+
"php": "^8.3",
21+
"justbetter/odata-client": "^1.3",
22+
"laravel/framework": "^11.0|^12.0"
23+
},
24+
"require-dev": {
25+
"larastan/larastan": "^3.0",
26+
"laravel/pint": "^1.20",
27+
"orchestra/testbench": "^9.0",
28+
"pestphp/pest": "^3.7",
29+
"phpstan/phpstan-mockery": "^2.0",
30+
"phpunit/phpunit": "^11.5"
31+
},
32+
"autoload": {
33+
"psr-4": {
34+
"JustBetter\\DynamicsClient\\": "src"
35+
}
36+
},
37+
"autoload-dev": {
38+
"psr-4": {
39+
"JustBetter\\DynamicsClient\\Tests\\": "tests"
40+
}
41+
},
42+
"scripts": {
43+
"test": "phpunit",
44+
"analyse": "phpstan --memory-limit=256M",
45+
"style": "pint --test",
46+
"quality": [
47+
"@style",
48+
"@analyse",
49+
"@test",
50+
"@coverage"
51+
],
52+
"fix-style": "pint",
53+
"coverage": "XDEBUG_MODE=coverage php vendor/bin/pest --coverage --min=54"
54+
},
55+
"config": {
56+
"sort-packages": true,
57+
"allow-plugins": {
58+
"pestphp/pest-plugin": true
59+
}
60+
},
61+
"extra": {
62+
"laravel": {
63+
"providers": [
64+
"JustBetter\\DynamicsClient\\ServiceProvider"
65+
]
66+
}
67+
},
68+
"minimum-stability": "dev",
69+
"prefer-stable": true
6470
}

0 commit comments

Comments
 (0)