Skip to content

Commit

Permalink
added: lint.yml with composer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandrfedorov97 committed Sep 26, 2023
1 parent a476164 commit 74fd077
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./

0 comments on commit 74fd077

Please sign in to comment.