-
Notifications
You must be signed in to change notification settings - Fork 35
51 lines (51 loc) · 1.48 KB
/
phplint.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
name: phplint
on: [push, pull_request]
jobs:
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@v2
with:
ignore_words_list: cant,fo,inbetween,nam,numer
skip: "*.css,*fr.html,*.js,*.json,*.lock,*.map,localization.php"
phplint_action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: overtrue/phplint@8.0
with:
path: ./app/src/
options: --exclude=*.log
phplint_setup-php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
tools: composer, composer-normalize, composer-require-checker, composer-unused, phplint, phpstan, phpunit
- run: phplint .
- run: phpunit . || true
- run: phpstan analyse . || true
#phplint_no_command:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: php-actions/composer@v6
# - uses: php-actions/phpstan@v3
#phplint_update:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: php-actions/composer@v6
# with:
# command: update
# - uses: php-actions/phpstan@v3
#phplint_install:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: php-actions/composer@v6
# with:
# command: install
# - uses: php-actions/phpstan@v3