Skip to content

Commit 70f78fb

Browse files
Laravel 10.x Compatibility (lorisleiva#219)
Co-authored-by: Loris Leiva <[email protected]>
1 parent 1d55ab1 commit 70f78fb

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

.github/workflows/run-tests.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,22 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
os: [ubuntu-latest, windows-latest]
11+
os: [ubuntu-latest]
1212
php: ["8.0", "8.1"]
13-
laravel: ["^8.67", "^9.0"]
13+
laravel: ["^8.67", "^9.0", "^10.0"]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
1616
- laravel: "^8.67"
1717
testbench: "^6.23"
18-
testbench-core: "^6.27"
1918
- laravel: "^9.0"
20-
testbench: "7.0"
21-
testbench-core: "7.0"
19+
testbench: "^7.0"
20+
- laravel: "^10.0"
21+
testbench: "^8.0"
2222
exclude:
23-
- php: "8.0"
24-
laravel: "^8.67"
25-
dependency-version: prefer-lowest
26-
- php: "8.1"
27-
laravel: "^8.67"
23+
- laravel: "^8.67"
2824
dependency-version: prefer-lowest
25+
- php: "8.0"
26+
laravel: "^10.0"
2927

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

@@ -47,7 +45,7 @@ jobs:
4745
4846
- name: Install dependencies
4947
run: |
50-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "orchestra/testbench-core:${{ matrix.testbench-core }}" --no-interaction --no-update
48+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
5149
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
5250
5351
- name: Execute tests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ⚡️ Laravel Actions
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/lorisleiva/laravel-actions.svg)](https://packagist.org/packages/lorisleiva/laravel-actions)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/lorisleiva/laravel-actions/Tests?label=tests)](https://github.com/lorisleiva/laravel-actions/actions?query=workflow%3ATests+branch%3Amain)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/lorisleiva/laravel-actions/run-tests.yml?branch=main)](https://github.com/lorisleiva/laravel-actions/actions?query=workflow%3ATests+branch%3Amain)
55
[![Total Downloads](https://img.shields.io/packagist/dt/lorisleiva/laravel-actions.svg)](https://packagist.org/packages/lorisleiva/laravel-actions)
66

77
![hero](https://user-images.githubusercontent.com/3642397/104024620-4e572400-51bb-11eb-97fc-c2692b16eaa7.png)

composer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^8.0",
25-
"illuminate/contracts": "^8.15 || 9.0 - 9.34 || ^9.36",
26-
"lorisleiva/lody": "^0.3.0"
24+
"php": "^8.0|^8.1",
25+
"illuminate/contracts": "^8.15 || 9.0 - 9.34 || ^9.36 || ^10.0",
26+
"lorisleiva/lody": "^0.4.0"
2727
},
2828
"require-dev": {
29-
"orchestra/testbench": "7.0.0",
30-
"orchestra/testbench-core": "7.0.0",
29+
"orchestra/testbench": "^8.0",
3130
"pestphp/pest": "^1.2",
3231
"phpunit/phpunit": "^9.5"
3332
},

tests/AsJobSerializedTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function handle()
6060
->and($firstParameter['class'])->toBe(get_class($model))
6161
->and($firstParameter['id'])->toBe($model->id)
6262
->and($firstParameter['relations'])->toBe([])
63-
->and($firstParameter['connection'])->toBe("sqlite");
63+
->and($firstParameter['connection'])->toBeIn(["testing", "sqlite"]);
6464
});
6565

6666
it('unserialises Eloquent models within the parameters', function () {
@@ -95,7 +95,7 @@ public function handle()
9595
->and($firstParameter['class'])->toBe(get_class($modelA))
9696
->and($firstParameter['id'])->toBe($collection->pluck('id')->toArray())
9797
->and($firstParameter['relations'])->toBe([])
98-
->and($firstParameter['connection'])->toBe("sqlite");
98+
->and($firstParameter['connection'])->toBeIn(["testing", "sqlite"]);
9999
});
100100

101101
it('unserialises Eloquent collections within the parameters', function () {

0 commit comments

Comments
 (0)