Skip to content

Commit

Permalink
Fix build, do not test dev files
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Dec 12, 2024
1 parent b73e810 commit 803b523
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# @Author: Roni Laukkarinen
# @Date: 2023-02-15 17:39:37
# @Last Modified by: Roni Laukkarinen
# @Last Modified time: 2024-03-12 15:13:24
name: PHP

on: [push, pull_request]
Expand Down Expand Up @@ -41,4 +37,4 @@ jobs:
vendor/bin/phpcs -p . --extensions=php --ignore=vendor,content/themes,content/plugins,content/uploads,node_modules,src,js,css,sass,plugin-update-checker,wp,mu-plugins/air-blocks-acf-example-data,content/languages --standard=phpcs.xml
- name: Test PHP for syntax errors
run: find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
run: find -L . -name '*.php' -not -path "./vendor/*" -not -path "./node_modules/*" -not -path "./src/*" -not -path "./js/*" -not -path "./css/*" -not -path "./sass/*" -not -path "./plugin-update-checker/*" -print0 | xargs -0 -n 1 -P 4 php -l

0 comments on commit 803b523

Please sign in to comment.