Compare commits

...

4 commits
2.0.1 ... main

Author SHA1 Message Date
74d42d5ceb 2.1.1 (2022-03-22) - Update Composer 2023-03-22 12:25:27 +13:00
41529e9bb0
Code styling 2023-02-07 15:32:59 +13:00
0e9df43d88
Add CI file 2023-02-07 15:31:52 +13:00
2ad52b8633
Composer update + PHP8.2 standards 2023-02-07 15:30:52 +13:00
7 changed files with 514 additions and 239 deletions

16
.github/workflows/ci.yml vendored Normal file
View 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

9
.gitlab-ci.yml Normal file
View 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

View file

@ -1,30 +1,41 @@
{ {
"name": "idanoo/laravel-resque", "name": "idanoo/laravel-resque",
"type": "library", "type": "library",
"replace": { "replace": {
"hlgrrnhrdt/laravel-resque": "*" "hlgrrnhrdt/laravel-resque": "*"
}, },
"description": "Wrapper for idanoo/php-resque (Laravel/Lumen ^5.2.0)", "description": "Wrapper for idanoo/php-resque (Laravel/Lumen ^5.2.0)",
"keywords": ["job", "background", "redis", "resque", "php"], "keywords": ["job", "background", "redis", "resque", "php"],
"homepage": "https://tinker.nz/idanoo/laravel-resque/", "homepage": "https://github.com/idanoo/laravel-resque",
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
{ {
"name": "Daniel Mason", "name": "Daniel Mason",
"email": "daniel@m2.nz" "email": "daniel@m2.nz"
} }
], ],
"require": { "require": {
"illuminate/console": "^8.0", "illuminate/console": "^8.0",
"illuminate/config": "^8.0", "illuminate/config": "^8.0",
"idanoo/php-resque": "^2.0" "idanoo/php-resque": "^2.1"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9" "phpunit/phpunit": "^9",
"phpcompatibility/php-compatibility": "^9.3",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Idanoo\\Resque\\": "src/" "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
}
} }
} }

654
composer.lock generated

File diff suppressed because it is too large Load diff

29
ruleset.xml Normal file
View 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>

View file

@ -1,4 +1,5 @@
<?php <?php
namespace Idanoo\Resque\Console; namespace Idanoo\Resque\Console;
use Idanoo\Resque\Resque; use Idanoo\Resque\Resque;

View file

@ -1,4 +1,5 @@
<?php <?php
namespace Idanoo\Resque; namespace Idanoo\Resque;
/** /**