Skip to content

Commit cc9da74

Browse files
NikitaNikita
authored andcommitted
modernize
1 parent b767a67 commit cc9da74

File tree

6 files changed

+22
-16
lines changed

6 files changed

+22
-16
lines changed

.github/workflows/grumphp.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
strategy:
16+
fail-fast: false
1617
matrix:
17-
php-versions: ['7.4', '8.1']
18+
php-versions: ['7.4','8.1', '8.2', '8.3']
1819
steps:
19-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2021

2122
- name: Setup PHP, with composer and extensions
2223
uses: shivammathur/setup-php@v2
@@ -27,7 +28,7 @@ jobs:
2728
id: composer-cache
2829
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
2930
- name: Cache composer dependencies
30-
uses: actions/cache@v2
31+
uses: actions/cache@v4
3132
with:
3233
path: ${{ steps.composer-cache.outputs.dir }}
3334
# Use composer.json for key, if composer.lock is not committed.
@@ -44,4 +45,4 @@ jobs:
4445
- run: php vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
4546
- run: php vendor/bin/phpcs --config-set show_warnings 0
4647
- name: Run Tests
47-
run: php vendor/bin/grumphp run
48+
run: php vendor/bin/grumphp run

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
/composer.lock
66
.DS_Store
77
.php_cs.cache
8+
.php-cs-fixer.cache
89
auth.json
910
/generate

.php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
$header = <<<EOF
33
@author Mygento Team
4-
@copyright 2018-2022 Mygento (https://www.mygento.com)
4+
@copyright 2018-2026 Mygento (https://www.mygento.com)
55
@package Mygento_Developer
66
EOF;
77

composer.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
{
22
"name": "mygento/module-developer",
33
"type": "magento2-module",
4-
"version": "2.4.0",
54
"license": "OSL-3.0",
65
"homepage": "https://github.com/mygento/module-developer",
76
"description": "Mygento Developer Module",
87
"authors": [
98
{
109
"name": "Nikita Tarasov",
11-
"email": "nikita@mygento.net",
12-
"homepage": "http://www.mygento.net/",
10+
"email": "nikita@mygento.com",
11+
"homepage": "https://www.mygento.com/",
1312
"role": "Developer"
1413
},
1514
{
1615
"name": "Mygento",
17-
"email": "connect@mygento.net",
18-
"homepage": "https://www.mygento.ru/"
16+
"email": "hello@mygento.com",
17+
"homepage": "https://www.mygento.com/"
1918
}
2019
],
2120
"keywords": [
@@ -26,9 +25,8 @@
2625
"magento/module-deploy": "100.4.*"
2726
},
2827
"require-dev": {
29-
"mygento/coding-standard": "~2.14.0-beta3"
28+
"mygento/coding-standard": "~2.14.0"
3029
},
31-
"minimum-stability": "RC",
3230
"prefer-stable": true,
3331
"autoload": {
3432
"files": [
@@ -43,5 +41,12 @@
4341
"type": "composer",
4442
"url": "https://repo.magento.com"
4543
}
46-
]
44+
],
45+
"config": {
46+
"allow-plugins": {
47+
"phpro/grumphp": true,
48+
"symfony/flex": false,
49+
"magento/composer-dependency-version-audit-plugin": false
50+
}
51+
}
4752
}

grumphp.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ grumphp:
1616
warning_severity: 0
1717
xmllint:
1818
phpstan:
19-
autoload_file: 'vendor/mygento/coding-standard/stan/autoload.php'
2019
ignore_patterns: ['Test']
2120
level: 1

registration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
/**
44
* @author Mygento Team
5-
* @copyright 2018-2022 Mygento (https://www.mygento.com)
5+
* @copyright 2018-2026 Mygento (https://www.mygento.com)
66
* @package Mygento_Developer
77
*/
88

99
\Magento\Framework\Component\ComponentRegistrar::register(
1010
\Magento\Framework\Component\ComponentRegistrar::MODULE,
1111
'Mygento_Developer',
12-
__DIR__
12+
__DIR__,
1313
);

0 commit comments

Comments
 (0)