diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index 119d628..e9a04f1 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -2,9 +2,14 @@ name: Formatting on: push: - paths: - - "**.php" - - ".github/workflows/formatting.yml" + paths-ignore: + - "docs/**" + - "README.md" + pull_request: + types: [ready_for_review, synchronize, opened] + paths-ignore: + - "docs/**" + - "README.md" env: phpv: 8.3 diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index b0e7354..44a8dd6 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -2,10 +2,14 @@ name: PHPStan on: push: - paths: - - "**.php" - - "phpstan.neon.dist" - - ".github/workflows/phpstan.yml" + paths-ignore: + - "docs/**" + - "README.md" + pull_request: + types: [ready_for_review, synchronize, opened] + paths-ignore: + - "docs/**" + - "README.md" env: phpv: 8.3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d1a05eb..e60e9a7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,12 +2,14 @@ name: Tests on: push: - paths: - - "**.php" - - ".github/workflows/tests.yml" - - "phpunit.xml.dist" - - "composer.json" - - "composer.lock" + paths-ignore: + - "docs/**" + - "README.md" + pull_request: + types: [ready_for_review, synchronize, opened] + paths-ignore: + - "docs/**" + - "README.md" jobs: test: