Skip to content

git hub actions #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: v1-develop
Choose a base branch
from
Open
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
9 changes: 9 additions & 0 deletions .github/workflows/phpcompatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: PHPCompatibility
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: 7.0-7.1
run: docker run --rm -v $PWD:/code domw/phpcompatibility phpcs --standard=PHPCompatibility --runtime-set testVersion 7.0-7.1 --colors --ignore=./Test/ ./
9 changes: 9 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: phpcs
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Magento 2 Ruleset
run: docker run --rm -v $PWD:/code domw/phpcs phpcs --colors --standard=Magento2 ./
9 changes: 9 additions & 0 deletions .github/workflows/phpcsfixer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: php-cs-fixer
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: PHP CS Fixer
run: docker run --rm -v $PWD:/code domw/php-cs-fixer php-cs-fixer fix --dry-run --diff --stop-on-violation --allow-risky=yes ./
15 changes: 15 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: PHPStan
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: MilesChou/composer-action@master
with:
args: config http-basic.repo.magento.com 7bdd660a63609d2af9fcbc033a9eae8d 77c0cedb4871620c63acbd82aeb92f38
- uses: MilesChou/composer-action@master
with:
args: install --prefer-dist --ignore-platform-reqs
- name: PHPStan
run: docker run --rm -v $PWD:/code domw/phpstan phpstan analyze ./
15 changes: 15 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: PHPUnit
on: ["push", "pull_request"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: MilesChou/composer-action@master
with:
args: config http-basic.repo.magento.com 7bdd660a63609d2af9fcbc033a9eae8d 77c0cedb4871620c63acbd82aeb92f38
- uses: MilesChou/composer-action@master
with:
args: install --prefer-dist --ignore-platform-reqs
- name: PHPUnit
run: vendor/bin/phpunit -c Test/phpunit.xml Test/
21 changes: 21 additions & 0 deletions .github/workflows/xmllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: xmllint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: MilesChou/composer-action@master
with:
args: config http-basic.repo.magento.com 7bdd660a63609d2af9fcbc033a9eae8d 77c0cedb4871620c63acbd82aeb92f38
- uses: MilesChou/composer-action@master
with:
args: install --prefer-dist --ignore-platform-reqs
- name: XML Lint
run: |
docker run --rm -v $PWD:/code domw/xmllint --noout ./etc/adminhtml/menu.xml --schema ./vendor/magento/module-backend/etc/menu.xsd
docker run --rm -v $PWD:/code domw/xmllint --noout ./etc/adminhtml/routes.xml --schema ./vendor/magento/framework/App/etc/routes.xsd
docker run --rm -v $PWD:/code domw/xmllint --noout ./etc/acl.xml --schema ./vendor/magento/framework/Acl/etc/acl.xsd
docker run --rm -v $PWD:/code domw/xmllint --noout ./etc/cron_groups.xml --schema ./vendor/magento/module-cron/etc/cron_groups.xsd
docker run --rm -v $PWD:/code domw/xmllint --noout ./etc/crontab.xml --schema ./vendor/magento/module-cron/etc/crontab.xsd
docker run --rm -v $PWD:/code domw/xmllint --noout ./etc/module.xml --schema ./vendor/magento/framework/Module/etc/module.xsd
23 changes: 7 additions & 16 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
paths:
- .
bootstrapFiles:
- vendor/bitexpert/phpstan-magento/autoload.php
excludes_analyse:
- %currentWorkingDirectory%/vendor/*
- 'vendor'
ignoreErrors:
- '/ has no return typehint specified./'

- message: '/Use service contracts to persist entities in favour of Magento\\Cron\\Model\\Schedule\:\:save\(\) method/'
path: Cron/ScheduleJob.php

- message: '/Call to deprecated method save\(\) of class Magento\\Framework\\Model\\AbstractModel/'
path: Cron/ScheduleJob.php

- message: '/Parameter \#1 \$autoload_function of function spl_autoload_register expects callable\(string\)\: void, array\(Magento\\Framework\\TestFramework\\Unit\\Autoloader\\GeneratedClassesAutoloader/'
path: Test/bootstrap.php
- '#typehint#'
- '#Factory#'
- '#Use service contracts to persist entities#'
- '#Call to deprecated method save#'
- '#Parameter \#1 \$autoload_function of function spl_autoload_register#'
reportUnmatchedIgnoredErrors: false