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 : PHPCS Lint
2+
3+ on :
4+ push :
5+ branches : ["**"]
6+ pull_request :
7+ branches : ["**"]
8+
9+ jobs :
10+ phpcs :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : Setup PHP
18+ uses : shivammathur/setup-php@v2
19+ with :
20+ php-version : ' 8.2'
21+ tools : composer, phpcs
22+
23+ - name : Install dependencies
24+ run : composer install --no-progress --prefer-dist
25+
26+ - name : Run PHPCS (JamesCNZPSR5)
27+ run : |
28+ phpcs --standard=JamesCNZPSR5 .
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " jamescnz/moodle-format_multitopic" ,
3+ "type" : " moodle-plugin" ,
4+ "require-dev" : {
5+ "squizlabs/php_codesniffer" : " ^3.13" ,
6+ "jamescnz/phpdoctypessniff" : " >=0.1"
7+ },
8+ "config" : {
9+ "allow-plugins" : {
10+ "dealerdirect/phpcodesniffer-composer-installer" : true
11+ }
12+ }
13+ }
You can’t perform that action at this time.
0 commit comments