Skip to content
Snippets Groups Projects
Commit 7bbef588 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

run tests only when relevant files have changed, re #606

Closes #606

Merge request studip/studip!768
parent d3a331c5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment