We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 701eb95 commit 301c23aCopy full SHA for 301c23a
1 file changed
.github/workflows/phpdoctypessniff.yml
@@ -0,0 +1,26 @@
1
+name: PHPDoc types sniff
2
+
3
+on: [push, pull_request]
4
5
+jobs:
6
+ phpdoctypessniff:
7
+ runs-on: ubuntu-22.04
8
9
+ steps:
10
+ - name: Checkout repository code
11
+ uses: actions/checkout@v4
12
13
+ - name: Setup PHP 8.2
14
+ uses: shivammathur/setup-php@v2
15
+ with:
16
+ php-version: '8.2'
17
+ tools: composer
18
19
+ - name: Install PHPCS and PHPDoc types sniff globally
20
+ run: |
21
+ composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
22
+ composer global require --no-interaction --no-progress jamescnz/phpdoctypessniff
23
+ echo "${HOME}/.composer/vendor/bin" >> $GITHUB_PATH
24
25
+ - name: PHPDoc types sniff
26
+ run: phpcs --standard=JamesCNZMoodle --ignore=vendor/,node_modules/ .
0 commit comments