Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit a8c4914

Browse files
jsantosAlexWayferthomasrockhu
authored
Ruby 3.0 Support & CI Actions improvement (#124)
* Ruby 3.0 Support & CI Actions improvement - Relax Ruby version constraint with `'>= 2.4', '< 3.1'`; - CI now runs with multiple versions of Ruby, using a matrix strategy; - Currently runs on 2.6, 2.7 and 3.0 (previously was only running on 2.6) - Replaced the `bundle install` step with `bundler-cache: true` - As shown on https://github.com/ruby/setup-ruby#caching-bundle-install-automatically * Include all versions declared as supported on the strategy matrix Co-authored-by: Alexander Popov <[email protected]> * Use '>= 2.4', '< 4' as the required ruby version Co-authored-by: Alexander Popov <[email protected]> * Update .github/workflows/ruby.yml Co-authored-by: Alexander Popov <[email protected]> Co-authored-by: Alexander Popov <[email protected]> Co-authored-by: Tom Hu <[email protected]>
1 parent 04bcb6f commit a8c4914

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/ruby.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,21 @@ on: [push, pull_request]
55
jobs:
66
test:
77
runs-on: ubuntu-latest
8-
8+
strategy:
9+
matrix:
10+
ruby:
11+
- 2.4
12+
- 2.5
13+
- 2.6
14+
- 2.7
15+
- 3.0
916
steps:
1017
- uses: actions/checkout@v2
1118
- name: Set up Ruby
1219
uses: ruby/setup-ruby@v1
1320
with:
14-
ruby-version: 2.6
15-
- name: Install dependencies
16-
run: bundle install
21+
ruby-version: ${{ matrix.ruby }}
22+
# Runs 'bundle install' and caches installed gems automatically
23+
bundler-cache: true
1724
- name: Run tests
1825
run: bundle exec rake

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ rvm:
88
- 2.5
99
- 2.6
1010
- 2.7
11+
- 3.0
1112
- jruby
1213
- jruby-9.2

codecov.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
1212
s.homepage = 'https://github.com/codecov/codecov-ruby'
1313
s.license = 'MIT'
1414
s.platform = Gem::Platform::RUBY
15-
s.required_ruby_version = '~> 2.4'
15+
s.required_ruby_version = '>= 2.4', '< 4'
1616
s.version = ::Codecov::VERSION
1717

1818
s.add_dependency 'simplecov', '>= 0.15', '< 0.21'

0 commit comments

Comments
 (0)