Sha256: 2892f3b314ed0bacf85e76fd58dc8dc225e65d8a97d99a712fff711dc1d7de05

Contents?: true

Size: 1.85 KB

Versions: 1

Compression:

Stored size: 1.85 KB

Contents

stages:
  - security
  - build
  - test
  - codequality
  - release

sast:
  stage: security

dependency_scanning:
  stage: security

secret_detection:
  stage: security

build:
  stage: build
  image: ruby:3.3
  script:
    - gem install bundler --no-document
    - bundle update
  artifacts:
    paths:
      - Gemfile.lock

.rspec: &rspec
  stage: test
  before_script:
    - ruby -v
    - echo "${RSPEC_RAILS_VERSION}"
    - gem install bundler -v "~>${BUNDLER_VERSION:-2.4}" --no-document
    - export BUNDLE_GEMFILE="spec/Gemfile"
    - bundle install --jobs=$(nproc) --path="../cache/bundle"
    - bundle list
  script:
    - bundle exec rake spec
  cache:
    key: "$CI_JOB_NAME"
    paths:
      - cache/

rspec-ruby3.0-rails6.1:
  <<: *rspec
  image: ruby:3.0
  variables:
    RSPEC_RAILS_VERSION: "6.1"

rspec-ruby3.0-rails7.0:
  <<: *rspec
  image: ruby:3.0
  variables:
    RSPEC_RAILS_VERSION: "7.0"

rspec-ruby3.0-rails7.1:
  <<: *rspec
  image: ruby:3.0
  variables:
    RSPEC_RAILS_VERSION: "7.1"

rspec-ruby3.2-rails7.1:
  <<: *rspec
  image: ruby:3.2
  variables:
    RSPEC_RAILS_VERSION: "7.1"

rspec-ruby3.2-rails7.2:
  <<: *rspec
  image: ruby:3.2
  variables:
    RSPEC_RAILS_VERSION: "7.2"

rspec-ruby3.3-rails7.2:
  <<: *rspec
  image: ruby:3.3
  variables:
    RSPEC_RAILS_VERSION: "7.2"

rspec-ruby3.3-rails8.0:
  <<: *rspec
  image: ruby:3.3
  variables:
    RSPEC_RAILS_VERSION: "8.0"

rubocop:
  stage: codequality
  image: ruby:3.0
  script:
    - gem install rubocop rubocop-performance rubocop-rails rubocop-rspec --no-document
    - rubocop

release:
  stage: release
  image: ruby:3.3
  script:
    - gem install bundler --no-document
    - bundle update
    - rake release
  only:
    - tags

include:
  - template: Security/SAST.gitlab-ci.yml
  - template: Security/Dependency-Scanning.gitlab-ci.yml
  - template: Security/Secret-Detection.gitlab-ci.yml

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-menu-manager-0.8.0 .gitlab-ci.yml