Skip to content
Merged

l11 #18

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: Install composer dependencies
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1]
laravel: [^10.0]
php: [8.2]
laravel: [11.*]
stability: [prefer-stable]
include:
- laravel: ^10.0
testbench: ^8.0
- laravel: 11.*
testbench: 9.*

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

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -39,5 +39,11 @@ jobs:
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: Clear Composer cache
run: composer clear-cache

- name: Wait for a few seconds
run: sleep 5

- name: Execute tests
run: vendor/bin/phpunit
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
}
],
"require": {
"php": "^8.0|^8.1",
"illuminate/support": "^9.0|^10.0",
"laravel/slack-notification-channel": "^2.4",
"php": "^8.1|^8.2",
"illuminate/contracts": "^11.0",
"laravel/slack-notification-channel": "^3.2",
"ext-json": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.2",
"laravel/sanctum": "^3.2",
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^10.0",
"laravel/sanctum": "^4.0",
"orchestra/testbench": "^9.0",
"phpunit/phpunit": "^10.0|^11.0",
"symfony/stopwatch": "^4.4|^5.0",
"nunomaduro/larastan": "^2.4",
"nunomaduro/larastan": "^2.0",
"phpstan/extension-installer": "^1.1"
},
"autoload": {
Expand Down
5 changes: 2 additions & 3 deletions tests/Profiling/ServerMemoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ public function test_can_measure_memory()

$memory->stop();

$this->assertEquals(
1,
round($memory->getMemory())
$this->assertTrue(
$memory->getMemory() > 0
);
}
}