generated from naoyukik/docker-php
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 891 Bytes
/
linter-php.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: "PHP analysis"
on:
push:
jobs:
PHP_CodeSniffer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Composer Install
run: composer install
- run: echo "::add-matcher::.github/problem-matcher.json"
- name: Run PHPCS
run: ./vendor/bin/phpcs --report=checkstyle --standard=./phpcs.xml ./src/PhpSample.php || true
Psalm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Composer Install
run: composer install
- name: Run Psalm
run: ./vendor/bin/psalm --output-format=github --no-cache || true
PHP_Mess_Detector:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Composer Install
run: composer install
- name: Run PHPMD
run: vendor/bin/phpmd ./src/PhpSample.php github ./phpmd.xml || true