-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
144 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Static Test | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- v2.4 | ||
push: | ||
branches: | ||
- v2.4 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-versions: ['7.4', '8.1', '8.2', '8.3'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP, with composer and extensions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mbstring, xml, ctype, iconv, intl, mysql | ||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Cache composer dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
# Use composer.json for key, if composer.lock is not committed. | ||
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
- run: composer self-update --2 | ||
- run: echo "{\"http-basic\":{\"repo.magento.com\":{\"username\":\"${MAGE_LOGIN}\",\"password\":\"${MAGE_PWD}\"}}}" > auth.json | ||
env: | ||
MAGE_LOGIN: ${{ secrets.MAGE_LOGIN }} | ||
MAGE_PWD: ${{ secrets.MAGE_PWD }} | ||
- name: Install Composer dependencies | ||
run: composer install --no-progress --prefer-dist --optimize-autoloader | ||
- run: php vendor/bin/phpcs --config-set ignore_warnings_on_exit 1 | ||
- run: php vendor/bin/phpcs --config-set show_warnings 0 | ||
- name: Run Tests | ||
run: php vendor/bin/grumphp run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,6 @@ | |
/composer.lock | ||
.DS_Store | ||
.php_cs.cache | ||
|
||
.php-cs-fixer.cache | ||
auth.json | ||
/generate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
$header = <<<EOF | ||
@author Mygento Team | ||
@copyright 2017-2024 Mygento (https://www.mygento.com) | ||
@package Mygento_Configsync | ||
EOF; | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in('.') | ||
->exclude('Test/tmp') | ||
->name('*.phtml') | ||
->ignoreVCSIgnored(true); | ||
$config = new \Mygento\CS\Config\Module($header); | ||
$config->setFinder($finder); | ||
return $config; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
parameters: | ||
git_dir: . | ||
bin_dir: vendor/bin | ||
tasks: | ||
composer: | ||
no_check_lock: true | ||
git_blacklist: | ||
keywords: | ||
- "die(" | ||
- "var_dump(" | ||
- "exit;" | ||
phplint: | ||
phpcsfixer2: | ||
config: '.php_cs' | ||
phpmd: | ||
ruleset: ['vendor/mygento/coding-standard/Mygento-Mage2/phpmd.xml'] | ||
phpcs: | ||
warning_severity: null | ||
xmllint: | ||
grumphp: | ||
tasks: | ||
composer: | ||
no_check_lock: true | ||
git_blacklist: | ||
keywords: | ||
- 'die(' | ||
- 'var_dump(' | ||
- 'exit;' | ||
phplint: | ||
phpcsfixer: | ||
config: '.php-cs-fixer.php' | ||
phpmd: | ||
ruleset: ['vendor/mygento/coding-standard/Mygento-Mage2/phpmd.xml'] | ||
exclude: ['Test'] | ||
phpcs: | ||
warning_severity: 0 | ||
xmllint: | ||
phpstan: | ||
autoload_file: 'vendor/mygento/coding-standard/stan/autoload.php' | ||
ignore_patterns: ['Test'] | ||
level: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset name="Mygento-Mage2MOD"> | ||
<rule ref="./vendor/mygento/coding-standard/Mygento-Mage2"/> | ||
<rule ref="./vendor/magento/magento-coding-standard/Magento2"/> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
includes: | ||
- vendor/mygento/coding-standard/stan/extension.neon | ||
|
||
parameters: | ||
bootstrapFiles: | ||
- 'vendor/mygento/coding-standard/stan/autoload.php' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters