stages: - test - deploy default: image: "ruby:${RUBY_VERSION}" tags: - gitlab-org before_script: - bundle --version - bundle install workflow: rules: # For merge requests, create a pipeline. - if: '$CI_MERGE_REQUEST_IID' # For the default branch, create a pipeline (this includes on schedules, pushes, merges, etc.). - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # For tags, create a pipeline. - if: '$CI_COMMIT_TAG' styles: stage: test script: - bundle exec rubocop --debug --parallel parallel: matrix: - RUBY_VERSION: ['2.7', '3.0'] specs: stage: test script: - bundle exec rspec parallel: matrix: - RUBY_VERSION: ['2.7', '3.0'] include: - project: 'gitlab-org/quality/pipeline-common' file: - '/ci/gem-release.yml' - '/ci/danger-review.yml'