From fdbf74f8e3a90de6d2b88a5c87ec1c4f209cf62b Mon Sep 17 00:00:00 2001
From: fcnybok
Date: Wed, 15 May 2024 23:26:51 +0300
Subject: [PATCH 1/2] feat: Update pipeline.
---
.../workflows/composer-require-checker.yml | 34 +++++++++++++++++++
.github/workflows/static.yml | 32 +++++++++++++++++
README.md | 9 +++++
composer.json | 9 ++---
4 files changed, 80 insertions(+), 4 deletions(-)
create mode 100644 .github/workflows/composer-require-checker.yml
create mode 100644 .github/workflows/static.yml
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..7111fae 100644
--- a/composer.json
+++ b/composer.json
@@ -15,16 +15,17 @@
],
"require": {
"php": ">=8.1.0",
- "doctrine/orm": "^3.1.3",
"doctrine/migrations": "^3.7.4",
+ "doctrine/orm": "^3.1.3",
+ "maglnet/composer-require-checker": "^4.11",
"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": {
"roave/infection-static-analysis-plugin": "^1.29",
From a6220f7fcc21ba3790946b6f51dbba51d2174c11 Mon Sep 17 00:00:00 2001
From: fcnybok
Date: Wed, 15 May 2024 23:45:42 +0300
Subject: [PATCH 2/2] feat: Update pipeline.
---
composer.json | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/composer.json b/composer.json
index 7111fae..bc93004 100644
--- a/composer.json
+++ b/composer.json
@@ -16,21 +16,21 @@
"require": {
"php": ">=8.1.0",
"doctrine/migrations": "^3.7.4",
- "doctrine/orm": "^3.1.3",
- "maglnet/composer-require-checker": "^4.11",
+ "doctrine/orm": "^3.1.3",
"psr/cache": "^2.0|^3.0",
"psr/log": "^2|^3",
- "symfony/cache": "^6.4.7",
+ "symfony/cache": "^6.4.7",
"yiisoft/aliases": "^3.0",
"yiisoft/config": "^1.5",
- "yiisoft/definitions": "^3.3",
+ "yiisoft/definitions": "^3.3",
"yiisoft/injector": "^1.2",
- "yiisoft/yii-console": "^2.2.0"
+ "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": {