Skip to content

Commit 3677483

Browse files
Laravel 12.x Compatibility (#39)
* Bump dependencies for Laravel 12 * Update GitHub Actions for Laravel 12
1 parent 792befa commit 3677483

File tree

2 files changed

+58
-53
lines changed

2 files changed

+58
-53
lines changed

.github/workflows/tests.yml

Lines changed: 45 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,50 @@
11
name: tests
22

33
on:
4-
push:
5-
pull_request:
6-
schedule:
7-
- cron: '0 0 * * *'
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
88

99
jobs:
10-
run-tests:
11-
runs-on: ubuntu-latest
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
php: [8.3, 8.2, 8.1]
16-
laravel: [11.*, 10.*]
17-
dependency-version: [prefer-lowest, prefer-stable]
18-
include:
19-
- laravel: 10.*
20-
testbench: 8.*
21-
- laravel: 11.*
22-
testbench: 9.*
23-
exclude:
24-
- laravel: 11.*
25-
php: 8.1
26-
27-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
28-
29-
steps:
30-
- name: Checkout code
31-
uses: actions/checkout@v4
32-
33-
- name: Setup PHP
34-
uses: shivammathur/setup-php@v2
35-
with:
36-
php-version: ${{ matrix.php }}
37-
coverage: none
38-
39-
- name: Install dependencies
40-
run: |
41-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
42-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
43-
44-
- name: Execute tests
45-
run: vendor/bin/phpunit
10+
run-tests:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php: [8.3, 8.2, 8.1]
17+
laravel: ['10.*', '11.*', '12.*']
18+
dependency-version: [prefer-lowest, prefer-stable]
19+
include:
20+
- laravel: 10.*
21+
testbench: 8.*
22+
- laravel: 11.*
23+
testbench: 9.*
24+
- laravel: 12.*
25+
testbench: 10.*
26+
exclude:
27+
- laravel: 11.*
28+
php: 8.1
29+
- laravel: 12.*
30+
php: 8.1
31+
32+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
33+
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v4
37+
38+
- name: Setup PHP
39+
uses: shivammathur/setup-php@v2
40+
with:
41+
php-version: ${{ matrix.php }}
42+
coverage: none
43+
44+
- name: Install dependencies
45+
run: |
46+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
47+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
48+
49+
- name: Execute tests
50+
run: vendor/bin/phpunit

composer.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99
],
1010
"homepage": "https://github.com/cesargb/laravel-logs-rotate",
1111
"authors": [
12-
{
13-
"name": "Cesar Garcia",
14-
"email": "[email protected]",
15-
"homepage": "https://github.com/cesargb",
16-
"role": "Developer"
17-
}
12+
{
13+
"name": "Cesar Garcia",
14+
"email": "[email protected]",
15+
"homepage": "https://github.com/cesargb",
16+
"role": "Developer"
17+
}
1818
],
1919
"license": "MIT",
2020
"require": {
21-
"php" : "^8.0",
22-
"illuminate/config": "^10.0|^11.0",
23-
"illuminate/console": "^10.0|^11.0",
24-
"illuminate/log": "^10.0|^11.0",
25-
"illuminate/support": "^10.0|^11.0",
21+
"php": "^8.0",
22+
"illuminate/config": "^10.0|^11.0|^12.0",
23+
"illuminate/console": "^10.0|^11.0|^12.0",
24+
"illuminate/log": "^10.0|^11.0|^12.0",
25+
"illuminate/support": "^10.0|^11.0|^12.0",
2626
"monolog/monolog": "^2.0|^3.0|^11.0",
2727
"cesargb/php-log-rotation": "^2.7"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^10.5",
30+
"phpunit/phpunit": "^10.5|^11.5.3",
3131
"friendsofphp/php-cs-fixer": "^3.13",
32-
"orchestra/testbench": "^8.0|^9.0",
32+
"orchestra/testbench": "^8.0|^9.0|^10.0",
3333
"larastan/larastan": "^2.0"
3434
},
3535
"autoload": {

0 commit comments

Comments
 (0)