Skip to content

Commit

Permalink
Merge pull request #1 from yupmin/feature/add-testing-upgrading
Browse files Browse the repository at this point in the history
upgrading test
  • Loading branch information
yupmin authored Jan 5, 2023
2 parents 5b52823 + f0b3d8c commit 45ea282
Show file tree
Hide file tree
Showing 45 changed files with 846 additions and 998 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Testing

on:
push:
branches:
- '**'

jobs:
testing:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
env:
extensions: apcu, bcmath, gd, redis-phpredis/[email protected], sqlite, pdo_sqlite
steps:
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: ${{ env.extensions }}
- name: Checkout
uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Install Dependencies
run: composer install --prefer-dist
- name: Check code style
run: ./vendor/bin/phpcs
- name: Testing
run: ./vendor/bin/phpunit

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ composer.lock
nbproject
tmp/
vendor/
.phpunit.result.cache
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Modern Phystrix

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

## Requirement

* PHP 7.1 above
* PHP 7.4, 8.0, 8.1, 8.2
* Modern PHP

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

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

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

```json
"require": {
"yupmin/modern-phystrix": "~4.0"
"yupmin/modern-phystrix": "~5.0"
},

```
Expand Down
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@
}
},
"require": {
"php": ">=7.1",
"php": ">=7.4",
"ext-json": "*",
"psr/container": "^1.0",
"ext-apcu": "*",
"psr/container": "^1.0|^2.0",
"psr/simple-cache": "^1.0",
"laminas/laminas-config": "^3.3"
"laminas/laminas-config": "^3.5"
},
"require-dev": {
"phpunit/phpunit": "~5.7",
"squizlabs/php_codesniffer": "^3.4",
"php-di/php-di": "^6.0"
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.7",
"php-di/php-di": "^6.4"
},
"extra": {
"branch-alias": {
Expand Down
Loading

0 comments on commit 45ea282

Please sign in to comment.