Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelogger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ versioned_files:
- rel_path: composer.dev.json
pattern: '"version": "{{ old_version }}",'
jinja: '"version": "{{ new_version }}",'
- rel_path: composer.magento-coding-standard.dev.json
pattern: '"version": "{{ old_version }}",'
jinja: '"version": "{{ new_version }}",'
- rel_path: etc/module.xml
pattern: 'name="Klaviyo_Reclaim" setup_version="{{ old_version }}" schema_version="{{ old_version }}"'
jinja: 'name="Klaviyo_Reclaim" setup_version="{{ new_version }}" schema_version="{{ new_version }}"'
12 changes: 12 additions & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,15 @@ jobs:
run: pip install changelogged==0.11.3
- name: Validate Changelog
run: changelogger check --fail
magento-coding-standard:
runs-on: ubuntu-latest
env:
COMPOSER: composer.magento-coding-standard.dev.json
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: php-actions/composer@v6
with:
dev: yes
- name: Run Magento Coding Standard via PHPCS
run: vendor/bin/phpcs --standard=Magento2 --ignore="*/vendor/*,*/Test/*" --severity=10 .
22 changes: 22 additions & 0 deletions composer.magento-coding-standard.dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "klaviyo/magento2-extension-coding-standard-dev",
"description": "The development composer file for coding standard.",
"type": "magento2-module",
"version": "4.4.0",
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"magento/magento-coding-standard": "38"
},
"scripts": {
"post-install-cmd": [
"([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/,../../magento/php-compatibility-fork/)"
],
"post-update-cmd": [
"([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/,../../magento/php-compatibility-fork/)"
]
}
}
Loading