Only run lint jobs for MRs

environments/review-front-wvff-cfe5gn/deployments/13838
Georg Krause 2022-09-15 10:39:06 +02:00
rodzic 15e4c2a895
commit d0fd2be799
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2970D504B2183D22
1 zmienionych plików z 12 dodań i 9 usunięć

Wyświetl plik

@ -127,9 +127,10 @@ black:
- pip install black - pip install black
script: script:
- black --check --diff . - black --check --diff .
only: rules:
changes: - if: $CI_PIPELINE_SOURCE == "merge_request_event"
- api/**/* changes:
- api/**/*
flake8: flake8:
interruptible: true interruptible: true
@ -145,9 +146,10 @@ flake8:
key: "$CI_PROJECT_ID__flake8_pip_cache" key: "$CI_PROJECT_ID__flake8_pip_cache"
paths: paths:
- "$PIP_CACHE_DIR" - "$PIP_CACHE_DIR"
only: rules:
changes: - if: $CI_PIPELINE_SOURCE == "merge_request_event"
- api/**/* changes:
- api/**/*
eslint: eslint:
interruptible: true interruptible: true
@ -164,9 +166,10 @@ eslint:
key: "$CI_PROJECT_ID__eslint_npm_cache" key: "$CI_PROJECT_ID__eslint_npm_cache"
paths: paths:
- front/node_modules - front/node_modules
only: rules:
changes: - if: $CI_PIPELINE_SOURCE == "merge_request_event"
- front/**/* changes:
- front/**/*
test_api: test_api:
interruptible: true interruptible: true