File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : PHP tests
2+ on : [push, pull_request]
3+ jobs :
4+ php-linter :
5+ name : PHP Syntax check 5.6|7.2|7.3
6+ runs-on : ubuntu-latest
7+ steps :
8+ - name : Checkout
9+ uses : actions/checkout@v2.0.0
10+ - name : PHP syntax checker 5.6
11+ uses : prestashop/github-action-php-lint/5.6@master
12+ - name : PHP syntax checker 7.2
13+ uses : prestashop/github-action-php-lint/7.2@master
14+ - name : PHP syntax checker 7.3
15+ uses : prestashop/github-action-php-lint/7.3@master
16+ php-cs-fixer :
17+ name : PHP-CS-Fixer
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v2.0.0
22+ - name : Run PHP-CS-Fixer
23+ uses : prestashopcorp/github-action-php-cs-fixer@master
24+ phpstan :
25+ name : PHPStan
26+ runs-on : ubuntu-latest
27+ strategy :
28+ matrix :
29+ presta-versions : ['1.7.0.3', 'latest']
30+ steps :
31+ - name : Checkout
32+ uses : actions/checkout@v2.0.0
33+ - name : Cache vendor folder
34+ uses : actions/cache@v1
35+ with :
36+ path : vendor
37+ key : php-${{ hashFiles('composer.lock') }}
38+ - name : Cache composer folder
39+ uses : actions/cache@v1
40+ with :
41+ path : ~/.composer/cache
42+ key : php-composer-cache
43+ - run : composer install
44+ - name : Pull PrestaShop files (Tag ${{ matrix.presta-versions }})
45+ run : docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/prestashop:${{ matrix.presta-versions }}
46+ - name : Run PHPStan
47+ run : docker run --rm --volumes-from temp-ps -v $PWD:/web/module -e _PS_ROOT_DIR_=/var/www/html --workdir=/web/module phpstan/phpstan:0.12 analyse --configuration=/web/module/tests/phpstan/phpstan.neon
You can’t perform that action at this time.
0 commit comments