Sha256: 74354711747817a64509e6b1d3f17c23e85a62b040dbfd13ff28dfe1d8d4647f

Contents?: true

Size: 1.15 KB

Versions: 4

Compression:

Stored size: 1.15 KB

Contents

default:
  image: ruby:3.1

workflow:
  rules:
    # For merge requests, create a pipeline.
    - if: '$CI_MERGE_REQUEST_IID'
    # For `master` 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'

.test_template: &test_definition
  image: ruby:${RUBY_VERSION}
  stage: test
  script:
    - gem install bundler --no-document
    - bundle config --local path vendor
    - bundle install
    - bundle exec rake verify build install
  cache:
    key: ${CI_JOB_IMAGE}
    paths:
      - vendor/ruby
ruby:
  <<: *test_definition
  parallel:
    matrix:
      - RUBY_VERSION: ["3.0", "3.1", "3.2"]

static-analysis:
  before_script:
    - bundle install
  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:
    - tools/deploy-rubygem.sh
  only:
    - tags

release:
  stage: deploy
  script:
    - tools/update-changelog.rb "${CI_COMMIT_TAG}"
  only:
    - tags

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gitlab-labkit-0.36.1 .gitlab-ci.yml
gitlab-labkit-0.36.0 .gitlab-ci.yml
gitlab-labkit-0.35.1 .gitlab-ci.yml
gitlab-labkit-0.35.0 .gitlab-ci.yml