diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml new file mode 100644 index 0000000..b56b4a4 --- /dev/null +++ b/.github/workflows/composer-require-checker.yml @@ -0,0 +1,34 @@ +on: + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'phpunit.xml.dist' + - 'psalm.xml' + + push: + branches: [ 'master' ] + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'phpunit.xml.dist' + - 'psalm.xml' + +name: Composer require checker + +jobs: + composer-require-checker: + uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master + with: + os: >- + ['ubuntu-latest'] + php: >- + ['8.1', '8.2', '8.3'] \ No newline at end of file diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..fbce0c6 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,32 @@ +on: + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'phpunit.xml.dist' + + push: + branches: [ 'master' ] + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'phpunit.xml.dist' + +name: static analysis + +jobs: + psalm: + uses: yiisoft/actions/.github/workflows/psalm.yml@master + with: + os: >- + ['ubuntu-latest'] + php: >- + ['8.1', '8.2', '8.3'] \ No newline at end of file diff --git a/README.md b/README.md index 27449ea..7b13fa6 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,15 @@

+[![Latest Stable Version](https://poser.pugx.org/stargazer-team/yii-doctrine/v/stable.png)](https://packagist.org/packages/stargazer-team/yii-doctrine) +[![Total Downloads](https://poser.pugx.org/stargazer-team/yii-doctrine/downloads.png)](https://packagist.org/packages/stargazer-team/yii-doctrine) +[![Build status](https://github.com/stargazer-team/yii-doctrine/workflows/build/badge.svg)](https://github.com/stargazer-team/yii-doctrine/actions) +[![Code Coverage](https://scrutinizer-ci.com/g/stargazer-team/yii-doctrine/badges/coverage.png)](https://scrutinizer-ci.com/g/stargazer-team/yii-doctrine/) +[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/stargazer-team/yii-doctrine/badges/quality-score.png)](https://scrutinizer-ci.com/g/stargazer-team/yii-doctrine/) +[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiisoft%2Fyii-console%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/stargazer-team/yii-doctrine/master) +[![static analysis](https://github.com/stargazer-team/yii-doctrine/workflows/static%20analysis/badge.svg)](https://github.com/stargazer-team/yii-doctrine/actions?query=workflow%3A%22static+analysis%22) +[![type-coverage](https://shepherd.dev/github/stargazer-team/yii-doctrine/coverage.svg)](https://shepherd.dev/github/stargazer-team/yii-doctrine) + Installation ------------ diff --git a/composer.json b/composer.json index 07b3ce4..bc93004 100644 --- a/composer.json +++ b/composer.json @@ -15,21 +15,22 @@ ], "require": { "php": ">=8.1.0", - "doctrine/orm": "^3.1.3", "doctrine/migrations": "^3.7.4", + "doctrine/orm": "^3.1.3", "psr/cache": "^2.0|^3.0", - "symfony/cache": "^6.4.7", "psr/log": "^2|^3", + "symfony/cache": "^6.4.7", "yiisoft/aliases": "^3.0", "yiisoft/config": "^1.5", + "yiisoft/definitions": "^3.3", "yiisoft/injector": "^1.2", - "yiisoft/yii-console": "^2.2.0", - "yiisoft/definitions": "^3.3" + "yiisoft/yii-console": "^2.2.0" }, "require-dev": { + "maglnet/composer-require-checker": "4.7.1", + "rector/rector": "^0.15.25", "roave/infection-static-analysis-plugin": "^1.29", - "vimeo/psalm": "^4.30|^5.9", - "rector/rector": "^0.15.25" + "vimeo/psalm": "^4.30|^5.9" }, "autoload": { "psr-4": {