Skip to content

Commit

Permalink
ci: only run php unit tests when php files changed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
max-nextcloud authored and juliusknorr committed May 2, 2022
1 parent 02d6ceb commit 6e2ac76
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e2ac76

Please sign in to comment.