Skip to content

Commit 58b6be6

Browse files
authored
Fix CI (#620)
* Fix CI * Fix Composer * Apply Rector changes (CI) * Separate build (phpunit) workflows * Revert concurrency * Fix Psalm * Apply Rector changes (CI) * Ignore merge plan in config * Add tests for invalid configuration --------- Co-authored-by: arogachev <[email protected]>
1 parent 306b949 commit 58b6be6

19 files changed

Lines changed: 162 additions & 19 deletions

.github/workflows/bc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ name: backwards compatibility
2525

2626
jobs:
2727
roave_bc_check:
28-
uses: yiisoft/actions/.github/workflows/bc.yml@master
28+
uses: yiisoft/actions/.github/workflows/bc.yml@48ade4ccb74825ff7f725afc17591572ecbe71c5
2929
with:
3030
os: >-
3131
['ubuntu-latest']

.github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ name: build
2424

2525
jobs:
2626
phpbench:
27-
uses: yiisoft/actions/.github/workflows/phpbench.yml@master
27+
uses: yiisoft/actions/.github/workflows/phpbench.yml@48ade4ccb74825ff7f725afc17591572ecbe71c5
2828
with:
2929
os: >-
3030
['ubuntu-latest', 'windows-latest']

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
php: >-
3434
['8.0', '8.1', '8.2']
3535
phpunit-without-intl:
36-
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
36+
uses: yiisoft/actions/.github/workflows/phpunit.yml@48ade4ccb74825ff7f725afc17591572ecbe71c5
3737
with:
3838
phpunitConfig: phpunit-without-intl.xml
3939
extensions: :intl

.github/workflows/composer-require-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ name: Composer require checker
2626

2727
jobs:
2828
composer-require-checker:
29-
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
29+
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@48ade4ccb74825ff7f725afc17591572ecbe71c5
3030
with:
3131
os: >-
3232
['ubuntu-latest']

.github/workflows/mutation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ name: mutation test
2222

2323
jobs:
2424
mutation:
25-
uses: yiisoft/actions/.github/workflows/roave-infection.yml@master
25+
uses: yiisoft/actions/.github/workflows/roave-infection.yml@48ade4ccb74825ff7f725afc17591572ecbe71c5
2626
with:
2727
min-covered-msi: 100
2828
os: >-

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name: rector
1313

1414
jobs:
1515
rector:
16-
uses: yiisoft/actions/.github/workflows/rector.yml@master
16+
uses: yiisoft/actions/.github/workflows/rector.yml@48ade4ccb74825ff7f725afc17591572ecbe71c5
1717
with:
1818
os: >-
1919
['ubuntu-latest']

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ name: static analysis
2424

2525
jobs:
2626
psalm:
27-
uses: yiisoft/actions/.github/workflows/psalm.yml@master
27+
uses: yiisoft/actions/.github/workflows/psalm.yml@48ade4ccb74825ff7f725afc17591572ecbe71c5
2828
with:
2929
os: >-
3030
['ubuntu-latest']

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ phpunit.phar
2828
/phpunit.xml
2929
# phpunit cache
3030
.phpunit.result.cache
31+
32+
/config/.merge-plan.php

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@
8080
"sort-packages": true,
8181
"allow-plugins": {
8282
"infection/extension-installer": true,
83-
"composer/package-versions-deprecated": true
83+
"composer/package-versions-deprecated": true,
84+
"yiisoft/config": true
8485
}
8586
},
8687
"scripts": {

rector.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
66
use Rector\Config\RectorConfig;
7-
use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector;
87
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
98
use Rector\Set\ValueObject\LevelSetList;
109

@@ -24,6 +23,5 @@
2423

2524
$rectorConfig->skip([
2625
ClosureToArrowFunctionRector::class,
27-
AddDefaultValueForUndefinedVariableRector::class,
2826
]);
2927
};

0 commit comments

Comments
 (0)