Skip to content

Commit

Permalink
Added support for Laravel 10 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeek authored Mar 22, 2023
1 parent 109a879 commit d3633f8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,16 @@ jobs:
- '6.0'
php_versions:
- '8.0'
laravel: ['^9.0']
include:
- operating_system: ubuntu-latest
redis_version: '6.0'
php_versions: '8.0'
experimental: true
php_versions: '8.1'
laravel: '^9.0'
- operating_system: ubuntu-latest
redis_version: '6.0'
php_versions: '8.2'
laravel: '^10.0'
runs-on: '${{ matrix.operating_system }}'
services:
redis:
Expand All @@ -84,7 +89,7 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
name: 'Test / PHP ${{ matrix.php_versions }} / Redis ${{ matrix.redis_version }}'
name: 'Test / Laravel ${{ matrix.laravel }} / PHP ${{ matrix.php_versions }} / Redis ${{ matrix.redis_version }}'
needs:
- lint
steps:
Expand Down Expand Up @@ -120,7 +125,9 @@ jobs:
auto-start: "true"
- name: 'Install PHP dependencies with Composer'
continue-on-error: ${{ matrix.experimental }}
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
run: |
composer require "laravel/framework=${{ matrix.laravel }}" --no-update
composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
working-directory: './'
- name: 'Run Unit Tests with PHPUnit'
continue-on-error: ${{ matrix.experimental }}
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,18 @@ __Миграция настроек пакета__

__Проверка зависимостей__

Пакет работает только с редис-клиентом `php-redis`, соответственно нужно проверить что в `config/database.php`
значится что-то вроде
Пакет работает только с редис-клиентом `php-redis`, соответственно нужно проверить что в `config/database.php` значится что-то вроде

```
```php
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
```

## Documentation

Для того что бы изменить хранилище payload'a джобки, у неё необходимо указать интерфейс
`Umbrellio\LaravelHeavyJobs\Jobs\ShouldStorePayload`
Для того что бы изменить хранилище payload'a джобки, у неё необходимо указать интерфейс `Umbrellio\LaravelHeavyJobs\Jobs\ShouldStorePayload`

```
```php
use Umbrellio\LaravelHeavyJobs\Jobs\ShouldStorePayload;
use Illuminate\Contracts\Queue\ShouldQueue;

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
"php": "^8.0",
"ext-json": "*",
"ext-redis": "*",
"laravel/framework": "^9.0"
"laravel/framework": "^9.0|^10.0"
},
"require-dev": {
"umbrellio/code-style-php": "^1.0",
"phpunit/phpunit": "^8.3|^9.0",
"php-coveralls/php-coveralls": "^2.1",
"symplify/easy-coding-standard": "^9.3.15",
"orchestra/testbench": "^7.0"
"orchestra/testbench": "^7.0|^8.0"
},
"scripts": {
"lint": [
Expand Down

0 comments on commit d3633f8

Please sign in to comment.