Skip to content

Commit 012afc9

Browse files
committed
Run CI against grape 2.1.x and 2.2.x
1 parent 700987f commit 012afc9

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,70 @@ jobs:
119119
bundle update
120120
bundle exec rspec
121121
122+
grape-21:
123+
runs-on: ubuntu-latest
124+
needs: ['rubocop']
125+
env:
126+
GRAPE_VERSION: '2.1.3'
127+
strategy:
128+
matrix:
129+
ruby-version: ['3.0', '3.1', '3.2', '3.3', 'head']
130+
steps:
131+
- name: Check out branch
132+
uses: actions/checkout@v4
133+
- name: Set up Ruby
134+
uses: ruby/setup-ruby@v1
135+
with:
136+
ruby-version: ${{ matrix.ruby-version }}
137+
- name: Run rspec wo model parser
138+
run: |
139+
bundle update
140+
bundle exec rspec
141+
- name: Run rspec w entity parser
142+
env:
143+
MODEL_PARSER: grape-swagger-entity
144+
run: |
145+
bundle update
146+
bundle exec rspec
147+
- name: Run rspec w representable parser
148+
env:
149+
MODEL_PARSER: grape-swagger-representable
150+
run: |
151+
bundle update
152+
bundle exec rspec
153+
154+
grape-22:
155+
runs-on: ubuntu-latest
156+
needs: ['rubocop']
157+
env:
158+
GRAPE_VERSION: '2.2.0'
159+
strategy:
160+
matrix:
161+
ruby-version: ['3.0', '3.1', '3.2', '3.3', 'head']
162+
steps:
163+
- name: Check out branch
164+
uses: actions/checkout@v4
165+
- name: Set up Ruby
166+
uses: ruby/setup-ruby@v1
167+
with:
168+
ruby-version: ${{ matrix.ruby-version }}
169+
- name: Run rspec wo model parser
170+
run: |
171+
bundle update
172+
bundle exec rspec
173+
- name: Run rspec w entity parser
174+
env:
175+
MODEL_PARSER: grape-swagger-entity
176+
run: |
177+
bundle update
178+
bundle exec rspec
179+
- name: Run rspec w representable parser
180+
env:
181+
MODEL_PARSER: grape-swagger-representable
182+
run: |
183+
bundle update
184+
bundle exec rspec
185+
122186
grape-HEAD:
123187
runs-on: ubuntu-latest
124188
needs: ['rubocop']

0 commit comments

Comments
 (0)