File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ #  https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+ 
3+ name : " Test Slevomat Coding Standard" 
4+ 
5+ on :
6+   pull_request :
7+   push :
8+     branches :
9+       - " 1.9.x" 
10+ 
11+ jobs :
12+   tests :
13+     name : " Tests" 
14+     runs-on : " ubuntu-latest" 
15+ 
16+     strategy :
17+       fail-fast : false 
18+       matrix :
19+         php-version :
20+           - " 7.2" 
21+           - " 7.3" 
22+           - " 7.4" 
23+           - " 8.0" 
24+           - " 8.1" 
25+           - " 8.2" 
26+ 
27+     steps :
28+       - name : " Checkout" 
29+         uses : actions/checkout@v3 
30+ 
31+       - name : " Checkout Slevomat Coding Standard" 
32+         uses : actions/checkout@v3 
33+         with :
34+           repository : slevomat/coding-standard 
35+           path : slevomat-cs 
36+           ref : 8.7.1 
37+ 
38+       - name : " Install PHP" 
39+         uses : " shivammathur/setup-php@v2" 
40+         with :
41+           coverage : " none" 
42+           php-version : " ${{ matrix.php-version }}" 
43+ 
44+       - name : " Install dependencies" 
45+         working-directory : slevomat-cs 
46+         run : " composer install --no-interaction --no-progress" 
47+ 
48+       - name : " Remove stable phpdoc-parser" 
49+         working-directory : slevomat-cs 
50+         run : " rm -r vendor/phpstan/phpdoc-parser/src" 
51+ 
52+       - name : " Remove top-level phpcs.xml" 
53+         run : " rm phpcs.xml" 
54+ 
55+       - name : " Copy phpdoc-parser" 
56+         run : " cp -r src/ slevomat-cs/vendor/phpstan/phpdoc-parser/src" 
57+ 
58+       - name : " Tests" 
59+         working-directory : slevomat-cs 
60+         run : " bin/phpunit" 
61+ 
62+       - name : " PHPStan" 
63+         working-directory : slevomat-cs 
64+         run : " bin/phpstan -c build/PHPStan/phpstan.neon" 
65+ 
66+       - name : " PHPStan in tests" 
67+         working-directory : slevomat-cs 
68+         run : " bin/phpstan -c build/PHPStan/phpstan.tests.neon" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments