Skip to content

Commit

Permalink
Run composer update to bring in latest PHPCS changes. Test to ensure …
Browse files Browse the repository at this point in the history
…any PHPCS failures are flagged
  • Loading branch information
dkotter committed Sep 10, 2024
1 parent ec5b8dc commit 4ec164f
Show file tree
Hide file tree
Showing 3 changed files with 674 additions and 259 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:
branches:
- develop
- trunk
paths:
- "**.php"
pull_request:
branches:
- develop
paths:
- "**.php"

jobs:
phpcs:
Expand All @@ -28,4 +32,4 @@ jobs:
run: composer install

- name: Test
run: ./vendor/bin/phpcs -v
run: ./vendor/bin/phpcs --runtime-set testVersion 7.4 .
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"php": ">=7.3"
},
"require-dev": {
"10up/phpcs-composer": "dev-master",
"10up/phpcs-composer": "^3.0",
"10up/wp_mock": "^0.4.2",
"phpunit/phpunit": "^9.5",
"phpcompatibility/phpcompatibility-wp": "*"
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99"
},
"config": {
"allow-plugins": {
Expand Down
Loading

0 comments on commit 4ec164f

Please sign in to comment.