Skip to content

Commit 45ea282

Browse files
authored
Merge pull request #1 from yupmin/feature/add-testing-upgrading
upgrading test
2 parents 5b52823 + f0b3d8c commit 45ea282

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+846
-998
lines changed

.github/workflows/testing.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Testing
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
testing:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
php-version: ['7.4', '8.0', '8.1', '8.2']
14+
env:
15+
extensions: apcu, bcmath, gd, redis-phpredis/phpredis@5.3.5, sqlite, pdo_sqlite
16+
steps:
17+
- name: Setup PHP with tools
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php-version }}
21+
extensions: ${{ env.extensions }}
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
with:
25+
# Disabling shallow clone is recommended for improving relevancy of reporting
26+
fetch-depth: 0
27+
- name: Install Dependencies
28+
run: composer install --prefer-dist
29+
- name: Check code style
30+
run: ./vendor/bin/phpcs
31+
- name: Testing
32+
run: ./vendor/bin/phpunit
33+

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ composer.lock
1010
nbproject
1111
tmp/
1212
vendor/
13+
.phpunit.result.cache

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Modern Phystrix
22

3-
[![Build Status](https://travis-ci.org/yupmin/phystrix.svg)](https://travis-ci.org/yupmin/phystrix)
3+
[![Testing](https://github.com/yupmin/phystrix/actions/workflows/testing.yml/badge.svg)](https://github.com/yupmin/phystrix/actions/workflows/testing.yml)
44
[![Latest Stable Version](https://poser.pugx.org/yupmin/modern-phystrix/v/stable)](https://packagist.org/packages/yupmin/modern-phystrix)
55
[![Total Downloads](https://poser.pugx.org/yupmin/modern-phystrix/downloads)](https://packagist.org/packages/yupmin/modern-phystrix)
66
[![License](https://poser.pugx.org/yupmin/modern-phystrix/license)](https://packagist.org/packages/yupmin/modern-phystrix)
77
[![Coding Standards](https://img.shields.io/badge/cs-PSR--2--R-yellow.svg)](https://github.com/php-fig-rectified/fig-rectified-standards)
88

99
## Requirement
1010

11-
* PHP 7.1 above
11+
* PHP 7.4, 8.0, 8.1, 8.2
1212
* Modern PHP
1313

1414
### About Phystrix
@@ -21,7 +21,7 @@ In case of a service failing way too often, to not make the situation worse, Phy
2121

2222
### Differences from [older version(upwork/phystrix)](https://github.com/upwork/phystrix)
2323

24-
* Use PHP 7.1 above
24+
* Use PHP 7.4 above
2525
* Change from 'Zend DI' to 'PSR DI', DI is optional. (for using Your framework)
2626
* Add [phystrix dashboard](https://github.com/upwork/phystrix-dashboard) library, and fix more.
2727
* Add Libraries of APCU
@@ -42,7 +42,7 @@ Recommended way to install Phystrix is by using [Composer](https://getcomposer.o
4242

4343
```json
4444
"require": {
45-
"yupmin/modern-phystrix": "~4.0"
45+
"yupmin/modern-phystrix": "~5.0"
4646
},
4747

4848
```

composer.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@
1212
}
1313
},
1414
"require": {
15-
"php": ">=7.1",
15+
"php": ">=7.4",
1616
"ext-json": "*",
17-
"psr/container": "^1.0",
17+
"ext-apcu": "*",
18+
"psr/container": "^1.0|^2.0",
1819
"psr/simple-cache": "^1.0",
19-
"laminas/laminas-config": "^3.3"
20+
"laminas/laminas-config": "^3.5"
2021
},
2122
"require-dev": {
22-
"phpunit/phpunit": "~5.7",
23-
"squizlabs/php_codesniffer": "^3.4",
24-
"php-di/php-di": "^6.0"
23+
"phpunit/phpunit": "^9.5",
24+
"squizlabs/php_codesniffer": "^3.7",
25+
"php-di/php-di": "^6.4"
2526
},
2627
"extra": {
2728
"branch-alias": {

0 commit comments

Comments
 (0)