Skip to content

Commit bafdf3a

Browse files
committed
feat: support for laravel 11
1 parent 9bc858e commit bafdf3a

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

.github/workflows/run-tests.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: run-tests
22

33
on: [push, pull_request]
44

@@ -8,19 +8,19 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
os: [ubuntu-latest]
12-
php: [8.0]
13-
laravel: [9.*]
14-
stability: [prefer-stable]
11+
os: [ubuntu-latest, windows-latest]
12+
php: [8.2]
13+
laravel: [11.*]
14+
stability: [prefer-lowest, prefer-stable]
1515
include:
16-
- laravel: 9.*
17-
testbench: 7.*
16+
- laravel: 11.*
17+
testbench: 9.*
1818

1919
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2020

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424

2525
- name: Setup PHP
2626
uses: shivammathur/setup-php@v2
@@ -39,5 +39,11 @@ jobs:
3939
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4040
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4141
42+
- name: Clear Composer cache
43+
run: composer clear-cache
44+
45+
- name: Wait for a few seconds
46+
run: sleep 5
47+
4248
- name: Execute tests
43-
run: vendor/bin/phpunit
49+
run: ./vendor/bin/testbench package:test --no-coverage

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.0",
20-
"illuminate/support": "^9.0",
21-
"laravel/slack-notification-channel": "^2.4",
19+
"php": "^8.2",
20+
"illuminate/contracts": "^11.0",
21+
"laravel/slack-notification-channel": "^3.2",
2222
"ext-json": "*"
2323
},
2424
"require-dev": {
2525
"friendsofphp/php-cs-fixer": "^3.2",
26-
"laravel/sanctum": "^2.8",
27-
"orchestra/testbench": "^7.0",
28-
"phpunit/phpunit": "^9.3",
26+
"laravel/sanctum": "^4.0",
27+
"orchestra/testbench": "^9.0",
28+
"phpunit/phpunit": "^10.0|^11.0",
2929
"symfony/stopwatch": "^4.4|^5.0",
3030
"nunomaduro/larastan": "^2.0",
3131
"phpstan/extension-installer": "^1.1"

0 commit comments

Comments
 (0)