summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorLukas Eipert <leipert@gitlab.com>2018-09-21 17:36:26 +0200
committerLukas Eipert <leipert@gitlab.com>2018-09-28 22:04:26 +0200
commit4df24e5f046f94a04b379fcd1d6d57ef49cfd6dc (patch)
tree40dfba20f0ba04528cdd9c5d6431273dc3d2eb6f /.gitlab-ci.yml
parentab6b4488033e6291ba1c2295ea87884ff37e7508 (diff)
downloadgitlab-ce-4df24e5f046f94a04b379fcd1d6d57ef49cfd6dc.tar.gz
Danger check for unprettified JavaScript
This adds a Dangerfile which executes `prettier` to find out if someone touched Frontend files and forgot to run it on their current branch.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 058cacb0774..5028aa98a85 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -444,10 +444,10 @@ setup-test-env:
- vendor/gitaly-ruby
danger-review:
+ <<: *pull-cache
image: registry.gitlab.com/gitlab-org/gitlab-build-images:danger
stage: test
allow_failure: true
- cache: {}
dependencies: []
before_script: []
only:
@@ -461,6 +461,7 @@ danger-review:
- $CI_COMMIT_REF_NAME =~ /.*-stable(-ee)?-prepare-.*/
script:
- git version
+ - yarn install --frozen-lockfile --cache-folder .yarn-cache
- danger --fail-on-errors=true
rspec-pg 0 30: *rspec-metadata-pg