Skip to content

Commit 240f90c

Browse files
authored
Merge pull request #31 from laravel-shift/l12-compatibility
Laravel 12.x Compatibility
2 parents 11f3087 + a4b51d9 commit 240f90c

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

.github/workflows/run-tests.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
67
pull_request:
7-
branches: [main]
8+
branches:
9+
- main
810

911
jobs:
1012
test:
1113
runs-on: ${{ matrix.os }}
14+
1215
strategy:
1316
fail-fast: true
1417
matrix:
1518
os: [ubuntu-latest]
1619
php: [8.3, 8.2, 8.1, 8.0, 7.4]
17-
laravel: [11.*, 10.*, 9.*, 8.*]
20+
laravel: ['8.*', '9.*', '10.*', '11.*', '12.*']
1821
stability: [prefer-lowest, prefer-stable]
1922
include:
2023
- laravel: 11.*
@@ -42,6 +45,12 @@ jobs:
4245
php: 7.4
4346
- laravel: 9.*
4447
php: 7.4
48+
- laravel: 12.*
49+
php: 8.1
50+
- laravel: 12.*
51+
php: 8.0
52+
- laravel: 12.*
53+
php: 7.4
4554

4655
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
4756

composer.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
"php": "^7.4 || ^8.0 || ^8.1",
2020
"brick/varexporter": "^0.3.8 || ^0.5.0",
2121
"doctrine/dbal": "^3.6 || ^4.0.2",
22-
"illuminate/contracts": "^8.0 || ^9.0 || ^10.0 || ^11.0",
23-
"illuminate/database": "^8.0 || ^9.0 || ^10.0 || ^11.0",
24-
"illuminate/support": "^8.0 || ^9.0 || ^10.0 || ^11.0",
25-
"illuminate/testing": "^8.0 || ^9.0 || ^10.0 || ^11.0",
22+
"illuminate/contracts": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
23+
"illuminate/database": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
24+
"illuminate/support": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
25+
"illuminate/testing": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
2626
"spatie/laravel-package-tools": "^1.12 || ^1.14"
2727
},
2828
"require-dev": {
2929
"friendsofphp/php-cs-fixer": "^3.13",
3030
"nunomaduro/larastan": "^1.0 || ^2.5",
31-
"orchestra/testbench": "^6.27 || ^7.0 || ^8.0 || ^9.0 ",
32-
"pestphp/pest": "^1.22 || ^2.0",
33-
"pestphp/pest-plugin-laravel": "^1.22 || ^2.0",
31+
"orchestra/testbench": "^6.27 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
32+
"pestphp/pest": "^1.22 || ^2.0 || ^3.7",
33+
"pestphp/pest-plugin-laravel": "^1.22 || ^2.0 || ^3.1",
3434
"spatie/laravel-ray": "^1.32"
3535
},
3636
"autoload": {
@@ -64,4 +64,4 @@
6464
},
6565
"minimum-stability": "dev",
6666
"prefer-stable": true
67-
}
67+
}

tests/SchemaRulesTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
beforeEach(function () {
1212
$this->tableName = 'tests';
13-
//realy make sure that the table does not exists before and after a test
13+
// realy make sure that the table does not exists before and after a test
1414
Schema::disableForeignKeyConstraints();
1515
Schema::dropIfExists($this->tableName);
1616
Schema::enableForeignKeyConstraints();
1717
});
1818

1919
afterEach(function () {
20-
//realy make sure that the table does not exists before and after a test
20+
// realy make sure that the table does not exists before and after a test
2121
Schema::disableForeignKeyConstraints();
2222
Schema::dropIfExists($this->tableName);
2323
Schema::enableForeignKeyConstraints();

0 commit comments

Comments
 (0)