Skip to content

Commit 3606efd

Browse files
authored
Add PHP 8.4 Support
1 parent fdda6e9 commit 3606efd

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

8.4/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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"]

8.4/action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 }}

8.4/entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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\")"

0 commit comments

Comments
 (0)