Skip to content

Commit

Permalink
Rails matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgeorgeson committed Jun 20, 2024
1 parent 19dcc5f commit eff6bbe
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,26 @@ on: [push]
jobs:
test:
runs-on: ubuntu-latest

env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
strategy:
matrix:
# ruby-version: ['2.7', '3.0', '3.1', '3.2']
gemfile:
# - rails_4.gemfile
# - rails_5.gemfile
- rails_6.gemfile
- rails_4
- rails_5
- rails_6
rubygems:
- default
ruby:
# - '2.7'
- '3.2'
- '2.7'
# - '3.2'
# bundler:
# - default
exclude:
- gemfile: rails_4.gemfile
- gemfile: rails_4
ruby: '3.2'
- gemfile: rails_6.gemfile
- gemfile: rails_6
ruby: '2.7'
name: ${{ matrix.gemfile }}, Ruby ${{ matrix.ruby }}

Expand All @@ -41,7 +42,7 @@ jobs:
run: cat configs/default.env >> $GITHUB_ENV

- name: Tests
run: 'bundle exec appraisal rails-6 bundle exec rspec -t ~type:integration --force-color --format doc'
run: 'bundle exec rspec -t ~type:integration --force-color --format doc'

release:
needs: test
Expand Down

0 comments on commit eff6bbe

Please sign in to comment.