Skip to content

Commit

Permalink
Build with Rails 4, 5 and 6
Browse files Browse the repository at this point in the history
  • Loading branch information
tapan-sh committed Jun 20, 2024
1 parent 0f9589f commit bd30770
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,31 @@ jobs:

strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2']

# ruby-version: ['2.7', '3.0', '3.1', '3.2']
gemfile:
- rails_4.gemfile
- rails_5.gemfile
- rails_6.gemfile
rubygems:
- default
ruby:
- '2.7'
- '3.2'
bundler:
- default
exclude:
- gemfile: rails_4.gemfile
ruby: '3.2'
- gemfile: rails_6.gemfile
ruby: '2.7'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
- name: Set up Ruby and Bundle
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
rubygems: ${{ matrix.rubygems }}
bundler: ${{ matrix.bundler }}
bundler-cache: true

- name: Export ENV
Expand All @@ -37,7 +54,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.0'
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Clear any existing packages
run: rm -f $GEMS_PATH
Expand Down

0 comments on commit bd30770

Please sign in to comment.