ci(testing): Only run tests for relevant changes

This commit is contained in:
Georg Krause 2022-10-29 09:46:41 +02:00
parent 570af9f1b2
commit 5c72d8d8c4
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 8 additions and 0 deletions

View File

@ -207,6 +207,10 @@ test_api:
- PY_VER: ["3.7", "3.8", "3.9", "3.10", "3.11"] - PY_VER: ["3.7", "3.8", "3.9", "3.10", "3.11"]
image: $CI_REGISTRY/funkwhale/backend-test-docker:$PY_VER image: $CI_REGISTRY/funkwhale/backend-test-docker:$PY_VER
coverage: '/TOTAL\s*\d*\s*\d*\s*(\d*%)/' coverage: '/TOTAL\s*\d*\s*\d*\s*(\d*%)/'
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
- api/**/*
test_front: test_front:
interruptible: true interruptible: true
@ -231,6 +235,10 @@ test_front:
junit: front/coverage/cobertura-coverage.xml junit: front/coverage/cobertura-coverage.xml
tags: tags:
- docker - docker
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
- front/**/*
build_docs: build_docs:
stage: build stage: build