From 26af70cca59717568250c2db74a36eebb0da6b25 Mon Sep 17 00:00:00 2001 From: Roni Laukkarinen Date: Wed, 14 Feb 2024 17:15:16 +0200 Subject: [PATCH] Ignore vendor from unit tests --- .github/workflows/php.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 8acd6de0..d9af7ef4 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -1,7 +1,7 @@ # @Author: Roni Laukkarinen # @Date: 2023-02-15 17:39:37 # @Last Modified by: Roni Laukkarinen -# @Last Modified time: 2024-02-14 17:07:55 +# @Last Modified time: 2024-02-14 17:14:59 name: PHP on: [push, pull_request] @@ -38,7 +38,7 @@ jobs: - name: Run PHP_CodeSniffer run: | - vendor/bin/phpcs -p . --extensions=php --ignore=node_modules,*/css/*,*/sass/* --standard=phpcs.xml + vendor/bin/phpcs -p . --extensions=php --ignore=vendor,node_modules,src,*/css/*,*/sass/* --standard=phpcs.xml - name: Test PHP for syntax errors run: find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l