Skip to content

Commit b26d1fa

Browse files
Update ci.yml
1 parent e12f7f8 commit b26d1fa

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,14 @@ jobs:
2828

2929
# Lint PHP files (check for syntax errors)
3030
- name: Lint PHP files
31-
run: find . -type f -name '*.php' -exec php -l {} \;
31+
run: find . -type f -name '*.php' -exec php -l {} \;
32+
33+
# Download PHP_CodeSniffer
34+
- name: Download PHP_CodeSniffer
35+
run: |
36+
wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
37+
chmod +x phpcs.phar
38+
39+
# Run PHP_CodeSniffer (check coding standards)
40+
- name: Run PHP_CodeSniffer
41+
run: ./phpcs.phar --standard=PSR12 .

0 commit comments

Comments
 (0)