Skip to content

Commit

Permalink
Run CI for old Ruby versions on Ubuntu 20
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Dec 25, 2023
1 parent ed84deb commit 6564a1b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,27 @@ on:
branches: [master]
pull_request:
jobs:
test-legacy:
runs-on: ubuntu-20.04
strategy:
matrix:
ruby: ["1.9", "2.0", "2.1", "2.2"]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: ${{ matrix.ruby == '1.9' && '2.7.11' || 'default' }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
[
"1.9",
"2.0",
"2.1",
"2.2",
"2.3",
"2.4",
"2.5",
Expand All @@ -31,7 +42,6 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: ${{ matrix.ruby == '1.9' && '2.7.11' || 'default' }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test

0 comments on commit 6564a1b

Please sign in to comment.