-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from justbetter/feature/phpstan
Feature/phpstan
- Loading branch information
Showing
5 changed files
with
85 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: analyse | ||
|
||
on: ['push', 'pull_request'] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: PHPStan | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo | ||
coverage: none | ||
|
||
- name: Repository Credentials | ||
run: composer config http-basic.repo.magento.com ${{ secrets.MAGENTO_REPO_USERNAME }} ${{ secrets.MAGENTO_REPO_PASSWORD }} | ||
|
||
- name: Install dependencies | ||
run: composer install --no-interaction | ||
|
||
- name: Analyse | ||
run: vendor/bin/phpstan analyse |
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,50 +1,2 @@ | ||
# These are some examples of commonly ignored file patterns. | ||
# You should customize this list as applicable to your project. | ||
# Learn more about .gitignore: | ||
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore | ||
|
||
# Node artifact files | ||
node_modules/ | ||
dist/ | ||
|
||
# Compiled Java class files | ||
*.class | ||
|
||
# Compiled Python bytecode | ||
*.py[cod] | ||
|
||
# Log files | ||
*.log | ||
|
||
# Package files | ||
*.jar | ||
|
||
# Maven | ||
target/ | ||
dist/ | ||
|
||
# JetBrains IDE | ||
.idea/ | ||
|
||
# Unit test reports | ||
TEST*.xml | ||
|
||
# Generated by MacOS | ||
.DS_Store | ||
|
||
# Generated by Windows | ||
Thumbs.db | ||
|
||
# Applications | ||
*.app | ||
*.exe | ||
*.war | ||
|
||
# Large media files | ||
*.mp4 | ||
*.tiff | ||
*.avi | ||
*.flv | ||
*.mov | ||
*.wmv | ||
|
||
vendor | ||
composer.lock |
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,31 +1,47 @@ | ||
{ | ||
"name": "justbetter/magento2-customer-pricing", | ||
"description": "Customer specific pricing module for Magento 2", | ||
"keywords": [ | ||
"magento", | ||
"magento2", | ||
"pricing" | ||
], | ||
"type": "magento2-module", | ||
"license": [ | ||
"MIT" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Vincent Boon", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"ext-json": "*", | ||
"magento/module-catalog": "*" | ||
}, | ||
"autoload": { | ||
"files": [ | ||
"registration.php" | ||
"name": "justbetter/magento2-customer-pricing", | ||
"description": "Customer specific pricing module for Magento 2", | ||
"keywords": [ | ||
"magento", | ||
"magento2", | ||
"pricing" | ||
], | ||
"type": "magento2-module", | ||
"license": [ | ||
"MIT" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Vincent Boon", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"psr-4": { | ||
"JustBetter\\CustomerPricing\\": "src" | ||
"require": { | ||
"ext-json": "*", | ||
"magento/module-catalog": "*", | ||
"magento/module-eav": "*" | ||
}, | ||
"autoload": { | ||
"files": [ | ||
"registration.php" | ||
], | ||
"psr-4": { | ||
"JustBetter\\CustomerPricing\\": "src" | ||
} | ||
}, | ||
"repositories": { | ||
"magento": { | ||
"type": "composer", | ||
"url": "https://repo.magento.com" | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"magento/composer-dependency-version-audit-plugin": true | ||
} | ||
}, | ||
"require-dev": { | ||
"bitexpert/phpstan-magento": "^0.11.0", | ||
"phpstan/phpstan": "^1.10" | ||
} | ||
} | ||
} |
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,12 @@ | ||
includes: | ||
- vendor/bitexpert/phpstan-magento/extension.neon | ||
|
||
parameters: | ||
paths: | ||
- src | ||
level: 1 | ||
ignoreErrors: | ||
- '#JustBetter\\CustomerPricing\\Model\\ResourceModel\\CustomerPricing\\CollectionFactory#' | ||
- '#JustBetter\\CustomerPricing\\Model\\ResourceModel\\CustomerPricingFactory#' | ||
- '#JustBetter\\CustomerPricing\\Model\\CustomerPricingFactory#' | ||
- '#Magento\\Eav\\Setup\\EavSetupFactory#' |
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