Skip to content

Bump actions/checkout from 3 to 4 #24

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #24

Workflow file for this run

name: Ruby
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.2'
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop --parallel --format progress
rspec:
runs-on: ubuntu-latest
needs: ['rubocop']
strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2', 'head']
grape-version: [1.6.2, 1.7.0]
model-parser: [grape-swagger-entity, grape-swagger-representable, '']
steps:
- name: Check out branch
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
GRAPE_VERSION: ${{ matrix.grape-version }}
MODEL_PARSER: ${{ matrix.model-parser }}
bundler-cache: true
- name: Run rspec rest of the suite
run: bundle exec rspec