.gitlab-ci.yml in gitlab-labkit-0.32.0 vs .gitlab-ci.yml in gitlab-labkit-0.33.0
- old
+ new
@@ -1,7 +1,7 @@
default:
- image: ruby:2.7
+ image: ruby:3.1
workflow:
rules:
# For merge requests, create a pipeline.
- if: '$CI_MERGE_REQUEST_IID'
@@ -9,22 +9,25 @@
- 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
+ - gem install bundler --no-document
+ - bundle config --local path vendor
- bundle install
- bundle exec rake verify build install
-
-test:3.0:
- image: ruby:3.0
+ cache:
+ key: ${CI_JOB_IMAGE}
+ paths:
+ - vendor/ruby
+ruby:
<<: *test_definition
-
-test:2.7:
- image: ruby:2.7
- <<: *test_definition
+ parallel:
+ matrix:
+ - RUBY_VERSION: ["2.7", "3.0", "3.1", "3.2"]
static-analysis:
before_script:
- bundle install
script: