Skip to content
Snippets Groups Projects
Unverified Commit 1c36053e authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Update CI yaml

parent 6c9b1411
Branches refactoring
No related tags found
No related merge requests found
Pipeline #140482 failed
...@@ -5,19 +5,26 @@ cache: ...@@ -5,19 +5,26 @@ cache:
- vendor/ruby - vendor/ruby
lint:rubocop: lint:rubocop:
image: ruby image: ghcr.io/ruby/ruby
script: script:
- gem install rubocop -N - gem install rubocop -N
- rubocop lib - rubocop lib
.test: test:unit:
before_script: before_script:
- sed -e 's/# gem /gem /' -i Gemfile - sed -e 's/# gem /gem /' -i Gemfile
- gem install bundler -N - gem install bundler -N
- bundle install -j $(nproc) --path vendor - bundle install -j $(nproc) --path vendor
coverage: '/\((\d+(?:.\d+)?)\%\) covered/' coverage: '/\((\d+(?:.\d+)?)\%\) covered/'
image: ghcr.io/ruby/ruby:$RUBY
script: script:
- GENERATE_REPORTS=true CI_REPORTS=reports bundle exec rake test - GENERATE_REPORTS=true CI_REPORTS=reports bundle exec rake test
parallel:
matrix:
- RUBY:
- 3.0
- 3.1
- 3.2
artifacts: artifacts:
expire_in: 1 week expire_in: 1 week
paths: paths:
...@@ -25,20 +32,8 @@ lint:rubocop: ...@@ -25,20 +32,8 @@ lint:rubocop:
reports: reports:
junit: "reports/TEST-*.xml" 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: pages:
image: ruby image: ghcr.io/ruby/ruby
stage: deploy stage: deploy
needs: [] needs: []
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment