Skip to content

Commit

Permalink
[Batch] Add composer-require-checker CI (#57)
Browse files Browse the repository at this point in the history
* Add composer-require-checker [batch]

* Add composer-require-checker dependency [batch]

* Add changelog [batch]

* Apply suggestions from code review

Co-authored-by: Sergei Predvoditelev <[email protected]>

* Remove unused files

* Fix missing dependencies

* Fix php version

* Fix symfony/console version

---------

Co-authored-by: Alexander Makarov <[email protected]>
Co-authored-by: Sergei Predvoditelev <[email protected]>
  • Loading branch information
3 people authored Jun 9, 2024
1 parent 43a49e2 commit 90b04cf
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 9 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- 'psalm.xml'

push:
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 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@
"php": "^8.1",
"httpsoft/http-basis": "^1.1",
"phpspec/php-diff": "^1.1.3",
"psr/http-message": "^2.0",
"symfony/console": "^6.0|^7.0",
"yiisoft/active-record": "dev-master",
"yiisoft/aliases": "^3.0",
"yiisoft/arrays": "^2.1|^3.0",
"yiisoft/data-response": "^2.0",
"yiisoft/db": "1.2 as dev-master",
"yiisoft/friendly-exception": "^1.1",
"yiisoft/http": "^1.2",
"yiisoft/hydrator": "^1.0",
"yiisoft/injector": "^1.1",
Expand All @@ -48,16 +53,15 @@
"yiisoft/yii-middleware": "^1.0"
},
"require-dev": {
"maglnet/composer-require-checker": "^4.2",
"jetbrains/phpstorm-attributes": "^1.0",
"nyholm/psr7": "^1.5",
"phpunit/phpunit": "^10.2",
"rector/rector": "^1.0.0",
"roave/infection-static-analysis-plugin": "^1.23",
"spatie/phpunit-watcher": "^1.23",
"vimeo/psalm": "^5.13",
"yiisoft/active-record": "dev-master",
"yiisoft/cache": "^3.0",
"yiisoft/db": "1.2 as dev-master",
"yiisoft/db-sqlite": "^1.0",
"yiisoft/di": "^1.1",
"yiisoft/dummy-provider": "^1.0",
Expand Down
7 changes: 0 additions & 7 deletions src/Component/CodeFile/CodeFileWriteResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Yiisoft\Yii\Gii\Component\CodeFile;

use JetBrains\PhpStorm\ArrayShape;

class CodeFileWriteResult
{
private array $results = [];
Expand All @@ -28,11 +26,6 @@ public function addError(CodeFile $file, string $error): void
];
}

#[ArrayShape([
'id' => 'string',
'status' => 'string',
'error' => 'null|string',
])]
public function getResults(): array
{
return $this->results;
Expand Down

0 comments on commit 90b04cf

Please sign in to comment.