Skip to content

Commit 6567669

Browse files
committed
Improve workflows.
1 parent 9a3d59e commit 6567669

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/core.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,23 @@ jobs:
3232

3333
- name: Run tests
3434
run: composer run-script --timeout=360 test
35+
36+
- name: Lint
37+
run: |
38+
lintPaths=()
39+
lintPaths+=("${GITHUB_WORKSPACE}/src")
40+
for lintPath in "${lintPaths[@]}"
41+
do
42+
for file in `find "$lintPath"`
43+
do
44+
EXTENSION="${file##*.}"
45+
if [ "$EXTENSION" == "php" ]
46+
then
47+
RESULTS=`php -l "$file"`
48+
if [ "$RESULTS" != "No syntax errors detected in $file" ]
49+
then
50+
echo $RESULTS
51+
fi
52+
fi
53+
done
54+
done

0 commit comments

Comments
 (0)