Skip to content

Use compose to add PHPCSUtils for linter #11

Use compose to add PHPCSUtils for linter

Use compose to add PHPCSUtils for linter #11

Workflow file for this run

name: Package and Upload Plugin
on:
release:
types: [published]
permissions:
contents: write
jobs:
release:

Check failure on line 11 in .github/workflows/package.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/package.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install PHP_CodeSniffer + WordPress Standards + PHPCSUtils
run: |
composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer global require squizlabs/php_codesniffer:"^3.7"
composer global require wp-coding-standards/wpcs:"^3.0"
composer global require phpcsstandards/phpcsutils:"^1.0"
~/.composer/vendor/bin/phpcs --config-set installed_paths ~/.composer/vendor/wp-coding-standards/wpcs
~/.composer/vendor/bin/phpcs -i
- name: Run PHP_CodeSniffer
run: ~/.composer/vendor/bin/phpcs proxy-aware-https-fix.php --standard=WordPress --report=full
- name: Zip plugin
run: zip -r proxy-aware-https-fix.zip proxy-aware-https-fix.php README.md LICENSE CHANGELOG.md
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v1
with:
files: proxy-aware-https-fix.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}