Skip to content

Commit

Permalink
Merge pull request #2 from php-etl/feature/qualityflow-improvments
Browse files Browse the repository at this point in the history
update composer to php 8.2, Add github actions, add phpunit et infect…
  • Loading branch information
sebprt authored Apr 5, 2023
2 parents f1b37f9 + 284825e commit 0beedf3
Show file tree
Hide file tree
Showing 704 changed files with 9,726 additions and 6,499 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Quality
on: push
jobs:
cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Cs-Fixer
run: |
wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer
chmod a+x php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
/vendor/
/.php-cs-fixer.cache
/bin/json5
/bin/php-cs-fixer
/bin/php-parse
/bin/phpstan
/bin/phpstan.phar
/bin/phpunit
/bin/rector
/bin/validate-json
/bin/var-dump-server
/bin/yaml-lint
/bin/infection
/bin/jane
/bin/jane-openapi
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PHP82Migration' => true,
'@PHP81Migration' => true,
'@PHP80Migration:risky' => true,
'@PHPUnit84Migration:risky' => true,
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Gyroscops Api Client
===

[![Quality (PHPStan lvl 4)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/quality.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/quality.yaml)
[![PHPUnit](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpunit.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpunit.yaml)
[![Infection](https://github.com/php-etl/gyroscops-api-client/actions/workflows/infection.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/infection.yaml)
[![PHPStan level 5](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-5.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-5.yaml)
[![PHPStan level 6](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-6.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-6.yaml)
[![PHPStan level 7](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-7.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-7.yaml)
[![PHPStan level 8](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-8.yaml/badge.svg)](https://github.com/php-etl/gyroscops-api-client/actions/workflows/phpstan-8.yaml)
![PHP](https://img.shields.io/packagist/php-v/php-etl/gyroscops-api-client)

14 changes: 9 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,29 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^8.0",
"jane-php/open-api-runtime": "^7.2"
"php": "^8.2",
"jane-php/open-api-runtime": "^7.4"
},
"autoload": {
"psr-4": {
"Gyroscops\\Api\\": "src/"
}
},
"require-dev": {
"jane-php/open-api-3": "^7.2",
"jane-php/open-api-3": "^7.4",
"friendsofphp/php-cs-fixer": "^3.11",
"rector/rector": "^0.15.19"
},
"config": {
"bin-dir": "bin"
"bin-dir": "bin",
"allow-plugins": {
"infection/extension-installer": true,
"php-http/discovery": true
}
},
"extra": {
"branch-alias": {
"dev-main": "0.1.x-dev"
"dev-main": "0.2.x-dev"
}
}
}
Loading

0 comments on commit 0beedf3

Please sign in to comment.