From 74fd077e7984573a07e5e5b97c9bd34a883f1374 Mon Sep 17 00:00:00 2001 From: Aleksandr Fedorov Date: Tue, 26 Sep 2023 10:49:18 +0300 Subject: [PATCH] added: lint.yml with composer dependencies --- .github/workflows/lint.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 582aa36..8262aba 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -47,9 +47,6 @@ jobs: - name: Run phpcs run: | composer self-update --1 - curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar - composer create-project wp-coding-standards/wpcs --no-dev - composer global show -P - php phpcs.phar --config-set ignore_warnings_on_exit 1 - php phpcs.phar --config-set installed_paths /home/runner/work/onlyoffice-wordpress/onlyoffice-wordpress/wpcs - php phpcs.phar --standard=Wordpress --ignore=3rdparty,onlyoffice-wordpress-block,admin/js,onlyoffice-tinymce/*.js,vendor,wpcs ./ + composer install + vendor/bin/phpcs --config-set ignore_warnings_on_exit 1 + vendor/bin/phpcs --standard=Wordpress --ignore=3rdparty,onlyoffice-wordpress-block,admin/js,onlyoffice-tinymce/*.js,vendor,wpcs ./