From 0e3f65ebe17505f7a3f38752ac8449974c060188 Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Wed, 6 Mar 2024 22:31:59 +0200 Subject: [PATCH] Laravel 10 support --- .github/workflows/tests.yml | 4 ++-- .gitignore | 1 + README.md | 7 ++++--- composer.json | 17 ++++++++--------- phpunit.xml.dist | 13 +++++-------- 5 files changed, 20 insertions(+), 22 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e7ff554..8b411c1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} @@ -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 diff --git a/.gitignore b/.gitignore index ba0252c..d55382e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /.idea +/.phpunit.cache /.vscode /vendor .DS_Store diff --git a/README.md b/README.md index 606612b..9a7b23b 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ [Buy me a coffee](https://buymeacoffee.com/dmitry.ivanov) [![StyleCI](https://github.styleci.io/repos/59570052/shield?branch=master&style=flat)](https://github.styleci.io/repos/59570052?branch=master) -[![Build Status](https://img.shields.io/github/workflow/status/dmitry-ivanov/laravel-console-mutex/tests/master)](https://github.com/dmitry-ivanov/laravel-console-mutex/actions?query=workflow%3Atests+branch%3Amaster) -[![Coverage Status](https://img.shields.io/codecov/c/github/dmitry-ivanov/laravel-console-mutex/master)](https://app.codecov.io/gh/dmitry-ivanov/laravel-console-mutex/branch/master) +[![Build Status](https://img.shields.io/github/actions/workflow/status/dmitry-ivanov/laravel-console-mutex/tests.yml?branch=master)](https://github.com/dmitry-ivanov/laravel-console-mutex/actions?query=workflow%3Atests+branch%3Amaster) +[![Coverage Status](https://img.shields.io/codecov/c/github/dmitry-ivanov/laravel-console-mutex/master)](https://app.codecov.io/gh/dmitry-ivanov/laravel-console-mutex/tree/master) ![Packagist Version](https://img.shields.io/packagist/v/illuminated/console-mutex) ![Packagist Stars](https://img.shields.io/packagist/stars/illuminated/console-mutex) @@ -17,6 +17,8 @@ Mutex for Laravel Console Commands. | Laravel | Console Mutex | |---------|--------------------------------------------------------------------------| +| 11.x | _[Support](https://buymeacoffee.com/dmitry.ivanov)_ ☕ | +| 10.x | [10.x](https://github.com/dmitry-ivanov/laravel-console-mutex/tree/10.x) | | 9.x | [9.x](https://github.com/dmitry-ivanov/laravel-console-mutex/tree/9.x) | | 8.x | [8.x](https://github.com/dmitry-ivanov/laravel-console-mutex/tree/8.x) | | 7.x | [7.x](https://github.com/dmitry-ivanov/laravel-console-mutex/tree/7.x) | @@ -286,5 +288,4 @@ class ExampleCommand extends Command Laravel Console Mutex is open-sourced software licensed under the [MIT license](LICENSE.md). -[Support on Patreon](https://patreon.com/dmitryivanov)  [Buy me a coffee](https://buymeacoffee.com/dmitry.ivanov)  diff --git a/composer.json b/composer.json index 958f2e4..904535b 100644 --- a/composer.json +++ b/composer.json @@ -12,20 +12,19 @@ "email": "dmitry.g.ivanov@gmail.com" }], "require": { - "php": "^8.0.2", + "php": "^8.1", "arvenil/ninja-mutex": "dev-master#82cbb2c", - "illuminate/console": "^9.0", - "illuminate/support": "^9.0", - "ramsey/collection": "^1.2" + "illuminate/console": "^10.0", + "illuminate/support": "^10.0" }, "require-dev": { "ext-redis": "*", "ext-pdo_mysql": "*", - "phpunit/phpunit": "^9.5.10", - "mockery/mockery": "^1.4.4", - "orchestra/testbench": "^7.0", - "illuminated/testing-tools": "^9.0", - "predis/predis": "^1.1.9" + "phpunit/phpunit": "^10.5", + "mockery/mockery": "^1.5.1", + "orchestra/testbench": "^8.0", + "illuminated/testing-tools": "^10.0", + "predis/predis": "^2.0.2" }, "autoload": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index b9adc44..cc702d8 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,18 +1,15 @@ - @@ -20,9 +17,9 @@ - + ./src - +