diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5496ba0..6fb38e2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,6 +19,11 @@ jobs: # @see: https://github.com/actions/virtual-environments runs-on: ubuntu-latest + # Don't run if the PR is from Dependabot, as it doesn't have access to the repository's secrets. + # Dependabot also only checks for GitHub action dependencies, so it's not necessary to run + # Plugin tests. + if: github.actor != 'dependabot[bot]' + # Defines PHP Versions matrix to run tests on strategy: fail-fast: false diff --git a/composer.json b/composer.json index c7ba501..bd6ee38 100644 --- a/composer.json +++ b/composer.json @@ -46,15 +46,15 @@ "prefer-stable": true, "scripts": { "create-docs": "phpDocumentor --directory=src --target=docs --template='vendor/saggre/phpdocumentor-markdown/themes/markdown'", - "phpcs": "vendor/bin/phpcs ./ -s -v", - "phpcbf": "vendor/bin/phpcbf ./ -s -v", - "phpcs-tests": "vendor/bin/phpcs ./tests --standard=phpcs.tests.xml -s -v", - "phpcbf-tests": "vendor/bin/phpcbf ./tests --standard=phpcs.tests.xml -s -v", + "phpcs": "vendor/bin/phpcs --standard=phpcs.xml -s -v", + "phpcbf": "vendor/bin/phpcbf --standard=phpcs.tests.xml -s -v", + "phpcs-tests": "vendor/bin/phpcs --standard=phpcs.xml -s -v", + "phpcbf-tests": "vendor/bin/phpcbf --standard=phpcs.tests.xml -s -v", "phpstan": "vendor/bin/phpstan analyse --memory-limit=1250M", - "php-coding-standards": "vendor/bin/phpcs ./ -s -v", - "fix-php-coding-standards": "vendor/bin/phpcbf ./ -s -v", - "php-coding-standards-on-tests": "vendor/bin/phpcs ./tests --standard=phpcs.tests.xml -s -v", - "fix-php-coding-standards-on-tests": "vendor/bin/phpcbf ./tests --standard=phpcs.tests.xml -s -v", + "php-coding-standards": "vendor/bin/phpcs --standard=phpcs.xml -s -v", + "fix-php-coding-standards": "vendor/bin/phpcbf --standard=phpcs.xml -s -v", + "php-coding-standards-on-tests": "vendor/bin/phpcs --standard=phpcs.tests.xml -s -v", + "fix-php-coding-standards-on-tests": "vendor/bin/phpcbf --standard=phpcs.tests.xml -s -v", "php-static-analysis": "vendor/bin/phpstan analyse --memory-limit=1250M", "test": "vendor/bin/phpunit --verbose --stop-on-failure @additional_args" }