fix: Grape::Endpoint#merge_params now returns correct object (#943) #231
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: RSpec | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
permissions: | |
contents: read | |
jobs: | |
rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3' | |
bundler-cache: true | |
- name: Run rubocop | |
run: bundle exec rubocop --parallel --format progress | |
test: | |
strategy: | |
matrix: | |
entry: | |
- { ruby: '3.0', grape: '1.7.1' } | |
- { ruby: '3.1', grape: '1.7.1' } | |
- { ruby: '3.2', grape: '1.7.1' } | |
- { ruby: '3.3', grape: '1.7.1' } | |
- { ruby: 'head', grape: '1.7.1' } | |
- { ruby: '3.0', grape: '1.8.0' } | |
- { ruby: '3.1', grape: '1.8.0' } | |
- { ruby: '3.2', grape: '1.8.0' } | |
- { ruby: '3.3', grape: '1.8.0' } | |
- { ruby: 'head', grape: '1.8.0' } | |
- { ruby: '3.0', grape: '2.0.0' } | |
- { ruby: '3.1', grape: '2.0.0' } | |
- { ruby: '3.2', grape: '2.0.0' } | |
- { ruby: '3.3', grape: '2.0.0' } | |
- { ruby: 'head', grape: '2.0.0' } | |
- { ruby: '3.0', grape: '2.1.3' } | |
- { ruby: '3.1', grape: '2.1.3' } | |
- { ruby: '3.2', grape: '2.1.3' } | |
- { ruby: '3.3', grape: '2.1.3' } | |
- { ruby: 'head', grape: '2.1.3' } | |
- { ruby: '3.0', grape: '2.2.0' } | |
- { ruby: '3.1', grape: '2.2.0' } | |
- { ruby: '3.2', grape: '2.2.0' } | |
- { ruby: '3.3', grape: '2.2.0' } | |
- { ruby: 'head', grape: '2.2.0' } | |
- { ruby: '3.0', grape: 'HEAD' } | |
- { ruby: '3.1', grape: 'HEAD' } | |
- { ruby: '3.2', grape: 'HEAD' } | |
- { ruby: '3.3', grape: 'HEAD' } | |
- { ruby: 'head', grape: 'HEAD' } | |
name: test (ruby=${{ matrix.entry.ruby }}, grape=${{ matrix.entry.grape }}) | |
runs-on: ubuntu-latest | |
needs: ['rubocop'] | |
env: | |
GRAPE_VERSION: ${{ matrix.entry.grape }} | |
steps: | |
- name: Check out branch | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.entry.ruby }} | |
- name: Run rspec wo model parser | |
run: | | |
bundle update | |
bundle exec rspec | |
- name: Run rspec w entity parser | |
env: | |
MODEL_PARSER: grape-swagger-entity | |
run: | | |
bundle update | |
bundle exec rspec | |
- name: Run rspec w representable parser | |
env: | |
MODEL_PARSER: grape-swagger-representable | |
run: | | |
bundle update | |
bundle exec rspec |