Skip to content

Commit

Permalink
Merge pull request #162 from inertiajs/test-matrix-indentation
Browse files Browse the repository at this point in the history
Nest exclude entries under the matrix key
  • Loading branch information
bknoles authored Nov 13, 2024
2 parents 7047ba2 + f041979 commit 4c93bf7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
matrix:
ruby: ['3.0', '3.1', '3.2', '3.3']
rails: ['6.1', '7.0', '7.1', '7.2', '8.0']
exclude:
- ruby: '3.0'
rails: '8.0'
- ruby: '3.1'
rails: '8.0'
- ruby: '3.0'
rails: '7.2'
- ruby: '3.1'
rails: '7.2'
exclude:
- ruby: '3.0'
rails: '8.0'
- ruby: '3.1'
rails: '8.0'
- ruby: '3.0'
rails: '7.2'
- ruby: '3.1'
rails: '7.2'

runs-on: ubuntu-latest
name: Test against Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
Expand All @@ -44,6 +44,9 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
# Use the latest version of RubyGems with Ruby 3.0 to avoid:
# https://bugs.ruby-lang.org/issues/19371
rubygems: ${{ startsWith(matrix.ruby-version, '3.0') && 'latest' || 'default' }}
bundler-cache: true
env:
RAILS_VERSION: ${{ matrix.rails }}
Expand Down
2 changes: 1 addition & 1 deletion lib/inertia_rails/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def with_defaults(config)
end

def component_path_resolver(path:, action:)
@options[:component_path_resolver].call(path:, action:)
@options[:component_path_resolver].call(path: path, action: action)
end

OPTION_NAMES.each do |option|
Expand Down

0 comments on commit 4c93bf7

Please sign in to comment.