diff options
author | Max <max@nextcloud.com> | 2022-05-01 06:22:34 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-05-02 14:21:39 +0300 |
commit | 6e2ac763cf2fbfcf7fe88c6360f4959495f1ffa6 (patch) | |
tree | d26a8f093b148926ecdb72209db9e468ac557782 /.github | |
parent | 02d6ceb255359003db55c4e91ab43206448d57db (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 e86e7d6eb..3537bddaf 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 |