-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (34 loc) · 1.46 KB
/
analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Analysis
on: [push, pull_request]
jobs:
build:
name: Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v1
- name: PHP CodeSniffer
run: |
composer global require "divante-ltd/pimcore-coding-standards":"^0.1" \
--no-interaction --prefer-dist --ignore-platform-reqs --quiet
/home/runner/.composer/vendor/bin/phpcs --config-set colors 1
/home/runner/.composer/vendor/bin/phpcs \
--extensions=php \
--standard=/home/runner/.composer/vendor/divante-ltd/pimcore-coding-standards/Standards/Pimcore5/ruleset.xml \
./src -s
- name: PHP Mess Detector
run: |
composer global require "phpmd/phpmd":"^2.6" \
--no-interaction --prefer-dist --ignore-platform-reqs --quiet
/home/runner/.composer/vendor/bin/phpmd src text \
/home/runner/.composer/vendor/divante-ltd/pimcore-coding-standards/Standards/Pimcore5/rulesetmd.xml
- name: PHP Copy/Paste Detector
run: |
composer global require "sebastian/phpcpd":"^4.1" \
--no-interaction --prefer-dist --ignore-platform-reqs --quiet
/home/runner/.composer/vendor/bin/phpcpd src
- name: PHP DocBlock Checker
run: |
composer global require "block8/php-docblock-checker":"^1.10" \
--no-interaction --prefer-dist --ignore-platform-reqs --quiet
/home/runner/.composer/vendor/bin/phpdoccheck --directory=src