ci(testing): Only run tests for relevant changes

environments/review-docs-renov-3s5eoo/deployments/14633
Georg Krause 2022-10-29 09:46:41 +02:00
rodzic 570af9f1b2
commit 5c72d8d8c4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2970D504B2183D22
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -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