-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 2.01 KB
/
reviewdog.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: reviewdog
on:
- pull_request
jobs:
misspell:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- name: Check out code.
uses: actions/checkout@v1
- name: misspell
uses: reviewdog/action-misspell@v1
with:
level: 'error'
locale: 'US'
path: './src'
exclude: './Resources/google/*'
phpmd-linter:
name: PHPMD
runs-on: ubuntu-latest
steps:
- name: Check out code into the workspace
uses: actions/checkout@v2
- name: Install dependencies for PHPMD
uses: php-actions/composer@v5
with:
php_version: 7.4
version: 2
command: install --no-scripts --ignore-platform-reqs
- name: Run php check code with reviewdog
uses: GeneaLabs/action-reviewdog-phpmd@1.0.0
with:
github_token: '${{ github.token }}'
level: 'error'
reporter: 'github-pr-check'
standard: './phpmd.xml'
target_directory: 'src'
phpstan-linter:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Check out code into the workspace
uses: actions/checkout@v2
- name: Install dependencies for PHPStan
uses: php-actions/composer@v5
with:
php_version: 7.4
version: 2
command: install --no-scripts --ignore-platform-reqs
- name: Run php check code with reviewdog
uses: GeneaLabs/action-reviewdog-phpstan@1.0.0
with:
github_token: '${{ github.token }}'
level: 'error'
reporter: 'github-pr-check'
target_directory: 'src'