Skip to content

Commit 9869de9

Browse files
committed
Use local compose
1 parent e8d7e35 commit 9869de9

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/package.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,11 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
1616

17-
- name: Install PHP_CodeSniffer + WordPress Standards + PHPCSUtils
18-
run: |
19-
composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
20-
composer global require squizlabs/php_codesniffer:"^3.7"
21-
composer global require wp-coding-standards/wpcs:"^3.0"
22-
composer global require phpcsstandards/phpcsutils:"^1.0"
23-
~/.composer/vendor/bin/phpcs --config-set installed_paths ~/.composer/vendor/wp-coding-standards/wpcs
24-
~/.composer/vendor/bin/phpcs -i
17+
- name: Install dependencies
18+
run: composer install
2519

2620
- name: Run PHP_CodeSniffer
27-
run: ~/.composer/vendor/bin/phpcs proxy-aware-https-fix.php --standard=WordPress --report=full
21+
run: vendor/bin/phpcs proxy-aware-https-fix.php --standard=WordPress --report=full
2822

2923
- name: Zip plugin
3024
run: zip -r proxy-aware-https-fix.zip proxy-aware-https-fix.php README.md LICENSE CHANGELOG.md

0 commit comments

Comments
 (0)