From 6e2ac763cf2fbfcf7fe88c6360f4959495f1ffa6 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 1 May 2022 05:22:34 +0200 Subject: [PATCH] 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 --- .github/workflows/phpunit.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index e86e7d6eb3e..3537bddaf3b 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