This commit is contained in:
Paul Kevan 2024-05-22 11:42:46 +01:00
parent 73629422a3
commit 833a9210b6

View file

@ -4,6 +4,10 @@ on:
pull_request:
push:
branches: [production]
paths:
- "**.php"
- "phpcs.xml"
- ".github/workflows/phpcs.yml"
jobs:
phpcs:
@ -44,16 +48,15 @@ jobs:
echo "${PWD}/mu-plugins/vendor/bin" >> $GITHUB_PATH
- name: Install PHP_CodeSniffer
- uses: thenabeel/action-phpcs@v8
with:
files: "**.php"
phpcs_path: php phpcs.phar
standard: phpcs.xml
run: |
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
php phpcs.phar --version
- uses: thenabeel/action-phpcs@v8
with:
files: "**.php"
phpcs_path: php phpcs.phar
standard: phpcs.xml
phpunit:
name: PHP Unit Tests