diff options
author | Rémy Coutable <remy@rymai.me> | 2022-03-15 19:39:38 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2022-03-15 20:23:06 +0300 |
commit | 79c1fc32e7e5a2b278e57c12873f4d2d4f29ca84 (patch) | |
tree | b8b56d63c039c066fd2fed5cb1a578cea82b85e0 | |
parent | 8b033b1763e80468b4f11a572e1425d1064692e2 (diff) |
Use the shared `danger-review` job definition
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | .gitlab-ci.yml | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a20e24297..86b2125fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,6 +29,9 @@ include: - template: Security/Dependency-Scanning.gitlab-ci.yml - template: Security/Coverage-Fuzzing.gitlab-ci.yml - template: Security/Secret-Detection.gitlab-ci.yml + - project: 'gitlab-org/quality/pipeline-common' + file: + - '/ci/danger-review.yml' .cache_deps: cache: &cache_deps_configuration @@ -91,25 +94,8 @@ include: danger-review: stage: build allow_failure: true - only: - - merge_requests - except: - - tags - - master variables: BUNDLE_GEMFILE: danger/Gemfile - before_script: - - bundle install - script: - - > - if [ -z "$DANGER_GITLAB_API_TOKEN" ]; then - # Force danger to skip CI source GitLab and fallback to "local only git repo". - unset GITLAB_CI - # We need access to the base SHA to help danger determine the base commit for this shallow clone. - bundle exec danger dry_run --fail-on-errors=true --verbose --base='$CI_MERGE_REQUEST_DIFF_BASE_SHA' - else - bundle exec danger --fail-on-errors=true --verbose - fi build: stage: build |