Skip to content

Split Rubocop and RSpec CI steps #13

Split Rubocop and RSpec CI steps

Split Rubocop and RSpec CI steps #13

Workflow file for this run

name: Ruby
on:
- push
- pull_request
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1', '3.2', '3.3']
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run Rubocop
run: bundle exec rake rubocop
- name: Run RSpec tests
run: bundle exec rake spec