Updating supported Rubies to add new versions and remove EOL ones #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: | |
- 3.0.0 | |
- 3.1.0 | |
- 3.2.0 | |
- 3.3.0 | |
gemfile: | |
- gemfiles/activesupport_6_1.gemfile | |
- gemfiles/activesupport_7_0.gemfile | |
- gemfiles/activesupport_7_1.gemfile | |
name: Ruby ${{ matrix.ruby }} using Gemfile ${{ matrix.gemfile }} | |
env: | |
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: 'Update gem command' | |
run: yes | gem update --system --force | |
- name: 'Update Bundler' | |
run: gem install bundler | |
- uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- run: bundle install | |
- run: bundle exec rake |