diff options
author | Max <max@nextcloud.com> | 2022-05-01 06:22:34 +0300 |
---|---|---|
committer | Max <max@nextcloud.com> | 2022-05-19 18:14:26 +0300 |
commit | dce4082459bd9855c80fcef76770ec0f8984fe64 (patch) | |
tree | 9b227cba95041e4508e87d5323d4f1dd3974d376 /.github | |
parent | 6b11ce90e8735ee1b3c293492c434a92562e96ed (diff) |
ci: only run php unit tests when php files changed
They take 10 minutes to setup nextcloud
and block available CI runners.
This is particularly wasteful with javascript dependency updates.
Dependabot will rebase the pending updates
upon every push to the underlying branch.
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/phpunit.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index f3dfeb3df..0601611f2 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -2,10 +2,26 @@ name: PHPUnit on: pull_request: + paths: + - .github/workflows/phpunit.yml + - appinfo/** + - composer.* + - lib/** + - psalm.xml + - templates/** + - tests/** push: branches: - master - stable* + paths: + - .github/workflows/phpunit.yml + - appinfo/** + - composer.* + - lib/** + - psalm.xml + - templates/** + - tests/** env: APP_NAME: text |