From 1c36053e1e3ba856730a4bc07059780000644855 Mon Sep 17 00:00:00 2001 From: Alexander Olofsson <me@ananace.dev> Date: Tue, 24 Sep 2024 09:13:46 +0200 Subject: [PATCH] Update CI yaml --- .gitlab-ci.yml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index faf78ae..c721f37 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,19 +5,26 @@ cache: - vendor/ruby lint:rubocop: - image: ruby + image: ghcr.io/ruby/ruby script: - gem install rubocop -N - rubocop lib -.test: +test:unit: before_script: - sed -e 's/# gem /gem /' -i Gemfile - gem install bundler -N - bundle install -j $(nproc) --path vendor coverage: '/\((\d+(?:.\d+)?)\%\) covered/' + image: ghcr.io/ruby/ruby:$RUBY script: - GENERATE_REPORTS=true CI_REPORTS=reports bundle exec rake test + parallel: + matrix: + - RUBY: + - 3.0 + - 3.1 + - 3.2 artifacts: expire_in: 1 week paths: @@ -25,20 +32,8 @@ lint:rubocop: reports: junit: "reports/TEST-*.xml" -test:ruby2.7: - extends: .test - image: "ruby:2.7" - -test:ruby3.0: - extends: .test - image: "ruby:3.0" - -test:ruby3.1: - extends: .test - image: "ruby:3.1" - pages: - image: ruby + image: ghcr.io/ruby/ruby stage: deploy needs: [] script: -- GitLab