diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-07-01 15:00:18 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-07-01 15:00:18 +0000 |
| commit | 7bbef588b396afb78375612ff70e6940b9f07670 (patch) | |
| tree | b47b8105a26965490c81480809cf3313ba71fb77 /.gitlab-ci.yml | |
| parent | d3a331c5e48ac263c8a7220fbf2da00c4722da10 (diff) | |
run tests only when relevant files have changed, re #606
Closes #606
Merge request studip/studip!768
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00e8712..5392cee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,6 +60,16 @@ stages: - .caches/eslint-cache - .caches/stylelint-cache +.only: + php-changes: &php-changes + changes: + - composer.json + - app/controllers/**/*controller.php + - db/**/* + - lib/**/* + - tests/**/* + - vendor/**/* + lint-php: stage: checks needs: [] @@ -122,6 +132,7 @@ lint-css: test-unit: stage: tests needs: [lint-php] + only: *php-changes cache: <<: *composer-cache policy: pull @@ -138,6 +149,7 @@ test-unit: test-functional: stage: tests needs: [lint-php] + only: *php-changes cache: <<: *composer-cache policy: pull @@ -156,6 +168,7 @@ test-functional: test-jsonapi: stage: tests needs: [lint-php] + only: *php-changes cache: <<: *composer-cache policy: pull |
