Commit c97fcfcb authored by Kamil Trzciński's avatar Kamil Trzciński
Browse files

Merge branch 'rymai-master-patch-bd63' into 'master'

ci: Use danger-review component

See merge request !125
parents a8a7eea0 9630842e
Loading
Loading
Loading
Loading
Loading
+9 −11
Original line number Diff line number Diff line
variables:
  RUBY_VERSION: "3.1.5"

default:
  image: ruby:3.1
  image: "ruby:${RUBY_VERSION}"

workflow:
  rules:
@@ -10,6 +13,11 @@ workflow:
    # For tags, create a pipeline.
    - if: '$CI_COMMIT_TAG'

include:
  - component: ${CI_SERVER_FQDN}/gitlab-org/components/danger-review/danger-review@1.4.1
    inputs:
      job_image: "ruby:${RUBY_VERSION}"

.test_template: &test_definition
  image: ruby:${RUBY_VERSION}
  stage: test
@@ -34,16 +42,6 @@ static-analysis:
  script:
    - rake verify

danger-review:
  stage: test
  except:
    - tags
    - master
  before_script:
    - bundle install
  script:
    - bundle exec danger --fail-on-errors=true --verbose

deploy:
  stage: deploy
  script: