mirror of
https://github.com/idanoo/laravel-resque.git
synced 2025-07-01 19:12:15 +00:00
Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
74d42d5ceb | |||
41529e9bb0 | |||
0e9df43d88 | |||
2ad52b8633 | |||
710ddef064 | |||
e6c6703d30 |
9 changed files with 3949 additions and 22 deletions
16
.github/workflows/ci.yml
vendored
Normal file
16
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
name: CI
|
||||
on: [push]
|
||||
jobs:
|
||||
Linter:
|
||||
runs-on: ubuntu-latest
|
||||
container: php:8.2
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install composer
|
||||
run: apt-get update -yq && apt-get install git wget procps unzip -y && pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis && wget https://getcomposer.org/composer.phar && php composer.phar install --dev
|
||||
- name: Validate composer.json and composer.lock
|
||||
run: php composer.phar validate --strict
|
||||
- name: Install dependencies
|
||||
run: php composer.phar install --dev --prefer-dist --no-progress
|
||||
- name: Run PHPCS Linter
|
||||
run: php -d memory_limit=256M vendor/bin/phpcs -s --standard=ruleset.xml
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,2 @@
|
|||
.idea/
|
||||
vendor/
|
||||
composer.lock
|
||||
|
|
9
.gitlab-ci.yml
Normal file
9
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Codestandards
|
||||
lint:
|
||||
image: php:8.2
|
||||
allow_failure: true
|
||||
script:
|
||||
- apt update && apt install -y wget unzip git
|
||||
- wget https://getcomposer.org/composer.phar
|
||||
- php composer.phar install --dev
|
||||
- php -d memory_limit=256M vendor/bin/phpcs -s --standard=ruleset.xml
|
|
@ -21,7 +21,7 @@ Additionally a default redis connection needs to be configured in ```config/redi
|
|||
|
||||
``` php
|
||||
'providers' => [
|
||||
Hlgrrnhrdt\Resque\ResqueServiceProvider::class
|
||||
Idanoo\Resque\ResqueServiceProvider::class
|
||||
]
|
||||
```
|
||||
|
||||
|
@ -30,7 +30,7 @@ Additionally a default redis connection needs to be configured in ```config/redi
|
|||
Open ```bootstrap/app.php``` and register the required service provider
|
||||
|
||||
``` php
|
||||
$app->register(Hlgrrnhrdt\Resque\ResqueServiceProvider::class);
|
||||
$app->register(Idanoo\Resque\ResqueServiceProvider::class);
|
||||
```
|
||||
|
||||
and load the config with
|
||||
|
|
|
@ -1,30 +1,41 @@
|
|||
{
|
||||
"name": "idanoo/laravel-resque",
|
||||
"type": "library",
|
||||
"replace": {
|
||||
"hlgrrnhrdt/laravel-resque": "*"
|
||||
"name": "idanoo/laravel-resque",
|
||||
"type": "library",
|
||||
"replace": {
|
||||
"hlgrrnhrdt/laravel-resque": "*"
|
||||
},
|
||||
"description": "Wrapper for idanoo/php-resque (Laravel/Lumen ^5.2.0)",
|
||||
"keywords": ["job", "background", "redis", "resque", "php"],
|
||||
"homepage": "https://www.gitlab.com/idanoo/laravel-resque/",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Daniel Mason",
|
||||
"email": "daniel@m2.nz"
|
||||
}
|
||||
],
|
||||
"description": "Wrapper for idanoo/php-resque (Laravel/Lumen ^5.2.0)",
|
||||
"keywords": ["job", "background", "redis", "resque", "php"],
|
||||
"homepage": "https://github.com/idanoo/laravel-resque",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Daniel Mason",
|
||||
"email": "daniel@m2.nz"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"illuminate/console": "^5.2",
|
||||
"illuminate/config": "^5.2",
|
||||
"idanoo/php-resque": "^2.0"
|
||||
"illuminate/console": "^8.0",
|
||||
"illuminate/config": "^8.0",
|
||||
"idanoo/php-resque": "^2.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9"
|
||||
"phpunit/phpunit": "^9",
|
||||
"phpcompatibility/php-compatibility": "^9.3",
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Idanoo\\Resque\\": "src/"
|
||||
}
|
||||
},
|
||||
"support": {
|
||||
"issues": "https://github.com/idanoo/php-resque/issues",
|
||||
"source": "https://github.com/idanoo/php-resque"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
3861
composer.lock
generated
Normal file
3861
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
29
ruleset.xml
Normal file
29
ruleset.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset name="PHP82" namespace="ezyVet\PHPCS">
|
||||
<description>PHP8.2 Ruleset</description>
|
||||
|
||||
<file>.</file>
|
||||
<exclude-pattern>vendor</exclude-pattern>
|
||||
<exclude-pattern>tests/</exclude-pattern>
|
||||
|
||||
<arg name="extensions" value="php" />
|
||||
<arg name="colors"/>
|
||||
<arg value="sp"/>
|
||||
<arg name="parallel" value="16"/>
|
||||
<arg name="report-width" value="140" />
|
||||
<arg name="error-severity" value="1" />
|
||||
<!-- Setting warning-severity here overrides both the '-n' CLI option and 'config-set show_warnings 0', so we
|
||||
can't use it. -->
|
||||
|
||||
<ini name="memory_limit" value="256M"/>
|
||||
|
||||
<!-- Check for version support for PHP 8.2 and higher. -->
|
||||
<config name="testVersion" value="8.2-"/>
|
||||
|
||||
|
||||
<rule ref="PSR12">
|
||||
</rule>
|
||||
|
||||
<rule ref="PHPCompatibility">
|
||||
</rule>
|
||||
</ruleset>
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace Idanoo\Resque\Console;
|
||||
|
||||
use Idanoo\Resque\Resque;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace Idanoo\Resque;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue