forked from stechstudio/backoff
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Small code style fixes * Init GitHub Actions
- Loading branch information
Showing
5 changed files
with
101 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# | ||
# JBZoo Toolbox - Retry | ||
# | ||
# This file is part of the JBZoo Toolbox project. | ||
# For the full copyright and license information, please view the LICENSE | ||
# file that was distributed with this source code. | ||
# | ||
# @package Retry | ||
# @license MIT | ||
# @copyright Copyright (C) JBZoo.com, All rights reserved. | ||
# @link https://github.com/JBZoo/Retry | ||
# | ||
|
||
name: Continuous Integration | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
push: | ||
branches: | ||
- 'master' | ||
schedule: | ||
- cron: '15 */8 * * *' | ||
|
||
env: | ||
COLUMNS: 120 | ||
TERM_PROGRAM: Hyper | ||
|
||
jobs: | ||
phpunit: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
env: | ||
JBZOO_COMPOSER_UPDATE_FLAGS: ${{ matrix.composer_flags }} | ||
strategy: | ||
matrix: | ||
php-version: [ 7.2, 7.3, 7.4 ] | ||
experimental: [ false ] | ||
composer_flags: [ "--prefer-lowest", "" ] | ||
include: | ||
- php-version: "8.0" | ||
experimental: true | ||
- php-version: "8.1" | ||
experimental: true | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PHP and composer | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
coverage: xdebug | ||
tools: composer | ||
|
||
- name: Build the Project | ||
continue-on-error: ${{ matrix.experimental }} | ||
run: make update --no-print-directory | ||
|
||
- name: 🧪 PHPUnit Tests | ||
continue-on-error: ${{ matrix.experimental }} | ||
run: make test --no-print-directory | ||
|
||
- name: 👍 Code Quality | ||
continue-on-error: ${{ matrix.experimental }} | ||
run: make codestyle --no-print-directory | ||
|
||
- name: 📝 Build All Reports at Once | ||
continue-on-error: ${{ matrix.experimental }} | ||
run: make report-all --no-print-directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,9 @@ language: php | |
os: linux | ||
dist: xenial | ||
|
||
git: | ||
depth: false | ||
|
||
php: | ||
- 7.2 | ||
- 7.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"name" : "jbzoo/retry", | ||
"type" : "library", | ||
"description" : "Tiny PHP library providing retry functionality with multiple backoff strategies and jitter support", | ||
"license" : "MIT", | ||
"keywords" : [ | ||
"name" : "jbzoo/retry", | ||
"type" : "library", | ||
"description" : "Tiny PHP library providing retry functionality with multiple backoff strategies and jitter support", | ||
"license" : "MIT", | ||
"keywords" : [ | ||
"jbzoo", "jitter", "retry", "backoff", "middleware", | ||
"back-off", "retry-after", "failure", "restart", "retryable" | ||
], | ||
|
||
"authors" : [ | ||
"authors" : [ | ||
{ | ||
"name" : "Joseph Szobody", | ||
"email" : "[email protected]", | ||
|
@@ -20,16 +20,20 @@ | |
} | ||
], | ||
|
||
"require" : { | ||
"require" : { | ||
"php" : ">=7.2" | ||
}, | ||
|
||
"require-dev" : { | ||
"jbzoo/toolbox-dev" : "^2.10.0", | ||
"require-dev" : { | ||
"jbzoo/toolbox-dev" : "^2.11.0", | ||
"jbzoo/jbdump" : ">=1.5.6" | ||
}, | ||
|
||
"autoload" : { | ||
"replace" : { | ||
"stechstudio/backoff" : "*" | ||
}, | ||
|
||
"autoload" : { | ||
"psr-4" : { | ||
"JBZoo\\Retry\\" : "src" | ||
}, | ||
|
@@ -39,17 +43,15 @@ | |
] | ||
}, | ||
|
||
"autoload-dev" : { | ||
"autoload-dev" : { | ||
"classmap" : ["tests"] | ||
}, | ||
|
||
"minimum-stability" : "dev", | ||
"prefer-stable" : true, | ||
"config" : { | ||
"config" : { | ||
"optimize-autoloader" : true | ||
}, | ||
|
||
"extra" : { | ||
"extra" : { | ||
"branch-alias" : { | ||
"dev-master" : "2.x-dev" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters