Merge pull request #224 from kerrizor/patch-1 #74
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# Due to https://github.com/actions/runner/issues/849, we should quote versions | |
ruby: ['2.7', '3.0', '3.1', '3.2', 'truffleruby-head'] | |
rails: ['7.0'] | |
name: Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }} | |
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | |
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails }}.gemfile | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Print versions | |
continue-on-error: true | |
run: | | |
ruby --version | |
bundle --version | |
echo "RubyGems version `gem --version`" | |
bundle exec rails --version | |
- name: Run tests | |
run: bundle exec rake |