stages: - test - deploy default: image: ruby:2.7 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 specs: stage: test script: - bundle exec rspec include: - project: 'gitlab-org/quality/pipeline-common' file: '/ci/gem-release.yml'