Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/phpcbf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: cs2pr

- name: Run Composer install
uses: php-actions/composer@v1
uses: php-actions/composer@v6

- name: Run PHPCBF to fix what it can
continue-on-error: true
Expand All @@ -29,8 +35,8 @@ jobs:
- name: Commit PHPCBF changes
uses: stefanzweifel/[email protected]
with:
commit_message: "PHPCBF"
commit_message: "🤖 PHPCBF"

- name: Run PHPCS to add annotations to the commit
continue-on-error: true
run: vendor/bin/phpcs --report=GitHubActionsAnnotations
run: vendor/bin/phpcs -q -n --report=checkstyle | cs2pr
20 changes: 3 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,13 @@
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "^7",
"squizlabs/php_codesniffer": "dev-master",
"dealerdirect/phpcodesniffer-composer-installer": "0.7.0",
"wp-coding-standards/wpcs": "^2.3",
"cweagans/composer-patches": "^1.0"
"squizlabs/php_codesniffer": "^3.6",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"wp-coding-standards/wpcs": "^2.3"
},
"autoload": {
"psr-4": {
"Pablo_Pacheco\\WP_Namespace_Autoloader\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Pablo_Pacheco\\WP_Namespace_Autoloader\\Tests\\": "tests"
}
},
"extra": {
"patches": {
"squizlabs/php_codesniffer": {
"Add GitHub Actions Annotations report type": "https://github.com/squizlabs/PHP_CodeSniffer/pull/2918.patch"
}
}
}
}
Loading