diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 6f9c43b..4d7ee6f 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -5,14 +5,21 @@ on: [push, pull_request] jobs: test: runs-on: ubuntu-latest - + strategy: + matrix: + ruby: + - 2.4 + - 2.5 + - 2.6 + - 2.7 + - 3.0 steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.6 - - name: Install dependencies - run: bundle install + ruby-version: ${{ matrix.ruby }} + # Runs 'bundle install' and caches installed gems automatically + bundler-cache: true - name: Run tests run: bundle exec rake diff --git a/.travis.yml b/.travis.yml index 0edcbf5..16d616d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,5 +8,6 @@ rvm: - 2.5 - 2.6 - 2.7 + - 3.0 - jruby - jruby-9.2 diff --git a/codecov.gemspec b/codecov.gemspec index 946cce4..b674e94 100644 --- a/codecov.gemspec +++ b/codecov.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |s| s.homepage = 'https://github.com/codecov/codecov-ruby' s.license = 'MIT' s.platform = Gem::Platform::RUBY - s.required_ruby_version = '~> 2.4' + s.required_ruby_version = '>= 2.4', '< 4' s.version = ::Codecov::VERSION s.add_dependency 'simplecov', '>= 0.15', '< 0.21'