File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 11name : PHP Lint
22
3- on : [push]
3+ on :
4+ push :
5+ branches :
6+ - master
47
58jobs :
69 PHPCS :
710 name : PHPCS
811 runs-on : ubuntu-latest
912 steps :
1013 - uses : actions/checkout@v2
14+
1115 - name : Install dependencies
1216 run : composer install --dev --prefer-dist --no-progress --no-suggest
17+
1318 - name : PHPCS check
1419 uses : chekalsky/phpcs-action@v1
1520 with :
Original file line number Diff line number Diff line change 1+ name : PHP Lint (PR)
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ PHPCS :
7+ name : PHPCS (Files Changed)
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v2
11+ with :
12+ fetch-depth : 0 # The blame will not work without this
13+
14+ # PHP 8 will throw PHP Fatal error: Uncaught TypeError: vsprintf(): Argument #2 ($values) must be of type array, string given in ...
15+ - uses : nanasess/setup-php@v3
16+ with :
17+ php-version : ' 7.4'
18+
19+ - name : Install dependencies
20+ run : composer install --dev --prefer-dist --no-progress --no-suggest
21+
22+ - uses : thenabeel/action-phpcs@v8
23+ with :
24+ files : " **.php,**.js,**.css"
25+ phpcs_path : ./vendor/bin/phpcs
26+ standard : phpcs.xml
You can’t perform that action at this time.
0 commit comments