Skip to content

Commit c8d9802

Browse files
authored
Merge pull request #18 from BinarCode/laravel11
l11
2 parents 3584634 + 7045cda commit c8d9802

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

.github/workflows/phpstan.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.1'
19+
php-version: '8.2'
2020
coverage: none
2121

2222
- name: Install composer dependencies

.github/workflows/run-tests.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.1]
13-
laravel: [^10.0]
12+
php: [8.2]
13+
laravel: [11.*]
1414
stability: [prefer-stable]
1515
include:
16-
- laravel: ^10.0
17-
testbench: ^8.0
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
4349
run: vendor/bin/phpunit

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.0|^8.1",
20-
"illuminate/support": "^9.0|^10.0",
21-
"laravel/slack-notification-channel": "^2.4",
19+
"php": "^8.1|^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": "^3.2",
27-
"orchestra/testbench": "^8.0",
28-
"phpunit/phpunit": "^10.0",
26+
"laravel/sanctum": "^4.0",
27+
"orchestra/testbench": "^9.0",
28+
"phpunit/phpunit": "^10.0|^11.0",
2929
"symfony/stopwatch": "^4.4|^5.0",
30-
"nunomaduro/larastan": "^2.4",
30+
"nunomaduro/larastan": "^2.0",
3131
"phpstan/extension-installer": "^1.1"
3232
},
3333
"autoload": {

tests/Profiling/ServerMemoryTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ public function test_can_measure_memory()
2323

2424
$memory->stop();
2525

26-
$this->assertEquals(
27-
1,
28-
round($memory->getMemory())
26+
$this->assertTrue(
27+
$memory->getMemory() > 0
2928
);
3029
}
3130
}

0 commit comments

Comments
 (0)