File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,11 +2,16 @@ name: "Coding Standards"
22
33on :
44 pull_request :
5+ branches :
6+ - " *.x"
7+ push :
8+ branches :
9+ - " *.x"
510
611jobs :
712 coding-standards :
813 name : " Coding Standards"
9- runs-on : " ubuntu-latest "
14+ runs-on : " ubuntu-20.04 "
1015
1116 strategy :
1217 matrix :
1621 steps :
1722 - name : " Checkout"
1823 uses : " actions/checkout@v2"
19- with :
20- fetch-depth : 10
2124
2225 - name : " Install PHP"
2326 uses : " shivammathur/setup-php@v2"
2831
2932 - name : " Install dependencies with Composer"
3033 uses : " ramsey/composer-install@v1"
34+ with :
35+ dependency-versions : " highest"
3136
32- - name : " Install diff-sniffer"
33- run : " wget https://github.com/diff-sniffer/diff-sniffer/releases/download/0.5.1/diff-sniffer.phar"
34-
35- - name : " Fetch head branch"
36- run : " git remote set-branches --add origin $GITHUB_BASE_REF && git fetch origin $GITHUB_BASE_REF"
37-
38- - name : " Run diff-sniffer"
39- run : " php diff-sniffer.phar origin/$GITHUB_BASE_REF...$GITHUB_SHA --report=checkstyle | cs2pr"
40-
41- - name : " Run phpcbf"
42- run : " vendor/bin/phpcbf"
43-
37+ # https://github.com/doctrine/.github/issues/3
38+ - name : " Run PHP_CodeSniffer"
39+ run : " vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"
You can’t perform that action at this time.
0 commit comments