Skip to content

Commit 3267fe9

Browse files
committed
CI PHPDoc Types checks WIP 1
1 parent a70fd28 commit 3267fe9

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 .

composer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}

0 commit comments

Comments
 (0)