-
-
Notifications
You must be signed in to change notification settings - Fork 324
72 lines (63 loc) · 1.56 KB
/
test-linter.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
61
62
63
64
65
66
67
68
69
70
71
72
---
name: lint
on:
push:
branches:
- 'master'
- 'releases/**'
pull_request:
types: [opened, edited, synchronize, reopened, review_requested]
jobs:
php-lint:
name: PHP lint 8.2
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: PHP syntax checker 8.2
uses: prestashop/github-action-php-lint/8.2@master
# phpmd:
# name: PHP-MD
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: PHP Mess Detector
# uses: php-actions/phpmd@v1
# with:
# php_version: 8.2
# path: ./
# output: text
# ruleset: test/phpmd/ruleset.xml
phpcs:
name: PHP-CS
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: PHP Code Sniffer
uses: php-actions/phpcs@v1
with:
php_version: 8.2
path: ./
standard: PSR12
ignore: livestats.blade.php,config.blade.php
exclude: Squiz.Functions.MultiLineFunctionDeclaration
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: src
- name: Checkout Heimdall repo for dependencies
uses: actions/checkout@v4
with:
repository: linuxserver/Heimdall
path: ./heimdall-src
- uses: php-actions/phpstan@v3
with:
path: src/
configuration: src/phpstan.neon