1
1
---
2
- # ################################
3
- # ################################
4
- # # Super Linter GitHub Actions ##
5
- # ################################
6
- # ################################
7
- name : Lint Code Base
8
-
9
- # ############################
10
- # Start the job on all push #
11
- # ############################
12
- on : # yamllint disable-line rule:truthy
13
- push :
14
- branches :
15
- - ' master'
16
- - ' releases/**'
17
- pull_request :
18
- types : [opened, edited, synchronize, reopened, review_requested]
19
-
20
- # ##############
21
- # Set the Job #
22
- # ##############
23
- jobs :
24
- build :
25
- # Name the Job
26
- name : Lint Code Base
27
- # Set the agent to run on
28
- runs-on : ubuntu-latest
29
-
30
- permissions :
31
- contents : read
32
- packages : read
33
- # To report GitHub Actions status checks
34
- statuses : write
35
-
36
- # #################
37
- # Load all steps #
38
- # #################
39
- steps :
40
- # #########################
41
- # Checkout the code base #
42
- # #########################
43
- - name : Checkout Code
44
- uses : actions/checkout@v4
45
- with :
46
- # Full git history is needed to get a proper list of changed files
47
- # within `super-linter`
48
- fetch-depth : 0
49
-
50
- # ###############################
51
- # Run Linter against code base #
52
- # ###############################
53
- - name : Lint Code Base
54
- uses : super-linter/super-linter/slim@v5
55
- env :
56
- VALIDATE_ALL_CODEBASE : false
57
- DEFAULT_BRANCH : master
58
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2
+ name : lint
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - ' master'
8
+ - ' releases/**'
9
+ pull_request :
10
+ types : [opened, edited, synchronize, reopened, review_requested]
11
+
12
+ jobs :
13
+ php-lint :
14
+ name : PHP lint 8.2
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout
18
+ uses : actions/checkout@v4
19
+
20
+ - name : PHP syntax checker 8.2
21
+ uses : prestashop/github-action-php-lint/8.2@master
22
+
23
+ # phpmd:
24
+ # name: PHPMD
25
+ # runs-on: ubuntu-latest
26
+ # steps:
27
+ # - name: Checkout
28
+ # uses: actions/checkout@v4
29
+ #
30
+ # - name: PHP Mess Detector
31
+ # uses: php-actions/phpmd@v1
32
+ # with:
33
+ # php_version: 8.2
34
+ # path: ./
35
+ # output: text
36
+ # ruleset: test/phpmd/ruleset.xml
37
+
38
+ phpcs :
39
+ name : PHPCS
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - name : Checkout
43
+ uses : actions/checkout@v4
44
+
45
+ - name : PHP Code Sniffer
46
+ uses : php-actions/phpcs@v1
47
+ with :
48
+ php_version : 8.2
49
+ path : ./
50
+ standard : PSR12
51
+ ignore : livestats.blade.php,config.blade.php
52
+ exclude : Squiz.Functions.MultiLineFunctionDeclaration
53
+
54
+ # Figure out later what the correct paths for Heimdall src should be.
55
+ # Needed by PHPStan for symbol discovery.
56
+ #
57
+ # phpstan:
58
+ # name: PHPStan
59
+ # runs-on: ubuntu-latest
60
+ # steps:
61
+ # - name: Checkout
62
+ # uses: actions/checkout@v4
63
+ # with:
64
+ # path: src
65
+ #
66
+ # - name: Checkout Heimdall repo for dependencies
67
+ # uses: actions/checkout@v4
68
+ # with:
69
+ # repository: linuxserver/Heimdall
70
+ # path: ./heimdall-src
71
+ #
72
+ # - uses: php-actions/phpstan@v3
73
+ # with:
74
+ # path: src/
75
+ # configuration: src/phpstan.neon
0 commit comments