Skip to content

Commit

Permalink
Laravel 10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Mar 6, 2024
1 parent 5f3a08d commit c0a3899
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1]
php: [8.1, 8.2]
stability: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} / ${{ matrix.stability }}
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
command: composer update --prefer-dist --${{ matrix.stability }} --no-interaction --no-progress --ansi

- name: Run tests
run: vendor/bin/phpunit --verbose --colors=always --coverage-clover ./build/logs/clover.xml
run: vendor/bin/phpunit --colors=always --coverage-clover ./build/logs/clover.xml

- name: Code coverage
uses: codecov/codecov-action@v1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.idea
/.phpunit.cache
/.vscode
/vendor
.DS_Store
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
[<img src="https://user-images.githubusercontent.com/1286821/181085373-12eee197-187a-4438-90fe-571ac6d68900.png" alt="Buy me a coffee" width="200" />](https://buymeacoffee.com/dmitry.ivanov)

[![StyleCI](https://github.styleci.io/repos/68023936/shield?branch=master&style=flat)](https://github.styleci.io/repos/68023936?branch=master)
[![Build Status](https://img.shields.io/github/workflow/status/dmitry-ivanov/laravel-db-profiler/tests/master)](https://github.com/dmitry-ivanov/laravel-db-profiler/actions?query=workflow%3Atests+branch%3Amaster)
[![Coverage Status](https://img.shields.io/codecov/c/github/dmitry-ivanov/laravel-db-profiler/master)](https://app.codecov.io/gh/dmitry-ivanov/laravel-db-profiler/branch/master)
[![Build Status](https://img.shields.io/github/actions/workflow/status/dmitry-ivanov/laravel-db-profiler/tests.yml?branch=master)](https://github.com/dmitry-ivanov/laravel-db-profiler/actions?query=workflow%3Atests+branch%3Amaster)
[![Coverage Status](https://img.shields.io/codecov/c/github/dmitry-ivanov/laravel-db-profiler/master)](https://app.codecov.io/gh/dmitry-ivanov/laravel-db-profiler/tree/master)

![Packagist Version](https://img.shields.io/packagist/v/illuminated/db-profiler)
![Packagist Stars](https://img.shields.io/packagist/stars/illuminated/db-profiler)
Expand All @@ -19,6 +19,8 @@ Database Profiler for Laravel Web and Console Applications.
| Laravel | Database Profiler |
|---------|------------------------------------------------------------------------|
| 11.x | _[Support](https://buymeacoffee.com/dmitry.ivanov)_|
| 10.x | [10.x](https://github.com/dmitry-ivanov/laravel-db-profiler/tree/10.x) |
| 9.x | [9.x](https://github.com/dmitry-ivanov/laravel-db-profiler/tree/9.x) |
| 8.x | [8.x](https://github.com/dmitry-ivanov/laravel-db-profiler/tree/8.x) |
| 7.x | [7.x](https://github.com/dmitry-ivanov/laravel-db-profiler/tree/7.x) |
Expand Down Expand Up @@ -65,5 +67,4 @@ If you want to force profiling for non-local environments - specify it explicitl

Laravel Database Profiler is open-sourced software licensed under the [MIT license](LICENSE.md).

[<img src="https://user-images.githubusercontent.com/1286821/43086829-ff7c006e-8ea6-11e8-8b03-ecf97ca95b2e.png" alt="Support on Patreon" width="125" />](https://patreon.com/dmitryivanov)&nbsp;
[<img src="https://user-images.githubusercontent.com/1286821/181085373-12eee197-187a-4438-90fe-571ac6d68900.png" alt="Buy me a coffee" width="200" />](https://buymeacoffee.com/dmitry.ivanov)&nbsp;
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"email": "dmitry.g.ivanov@gmail.com"
}],
"require": {
"php": "^8.0.2",
"illuminate/database": "^9.0",
"illuminate/support": "^9.0"
"php": "^8.1",
"illuminate/database": "^10.0",
"illuminate/support": "^10.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5.10",
"mockery/mockery": "^1.4.4",
"orchestra/testbench": "^7.0",
"illuminated/testing-tools": "^9.0",
"illuminated/helper-functions": "^9.0"
"phpunit/phpunit": "^10.5",
"mockery/mockery": "^1.5.1",
"orchestra/testbench": "^8.0",
"illuminated/testing-tools": "^10.0",
"illuminated/helper-functions": "^10.0"
},
"autoload": {
"psr-4": {
Expand Down
13 changes: 5 additions & 8 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
backupStaticProperties="false"
beStrictAboutTestsThatDoNotTestAnything="false"
beStrictAboutOutputDuringTests="true"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
>
<testsuites>
<testsuite name="Laravel DB Profiler Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>

<coverage processUncoveredFiles="true">
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<file>./src/DbProfilerDumper.php</file>
</exclude>
</coverage>
</source>
</phpunit>

0 comments on commit c0a3899

Please sign in to comment.