File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM php:8.4
2
+
3
+ LABEL "com.github.actions.name" ="PHP Syntax check"
4
+ LABEL "com.github.actions.description" ="Run the native PHP linter"
5
+ LABEL "com.github.actions.icon" ="check"
6
+ LABEL "com.github.actions.color" ="blue"
7
+
8
+ LABEL "repository" ="http://github.com/PrestaShopCorp/github-action-php-lint"
9
+ LABEL "homepage" ="http://github.com/actions"
10
+ LABEL "maintainer" =
"PrestaShop <[email protected] >"
11
+
12
+ ADD entrypoint.sh /entrypoint.sh
13
+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ # action.yml
2
+ name : " Prestashop PHP 8.4 Linter"
3
+ description : " PHP linter for 8.4"
4
+ inputs :
5
+ folder-to-exclude :
6
+ description : " Folder to exclude"
7
+ required : false
8
+ default : ' ! -path "./vendor/*"'
9
+ working-directory :
10
+ description : " Working directory"
11
+ required : false
12
+ default : " ./"
13
+ runs :
14
+ using : " docker"
15
+ image : " Dockerfile"
16
+ args :
17
+ - ${{ inputs.working-directory }}
18
+ - ${{ inputs.folder-to-exclude }}
Original file line number Diff line number Diff line change
1
+ #! /bin/sh -l
2
+
3
+ cd $1
4
+
5
+ sh -c " ! (find . -type f -name \" *.php\" $2 -exec php -l -n {} \; | grep -v \" No syntax errors detected\" )"
You can’t perform that action at this time.
0 commit comments