Skip to content

Lint and test

Lint and test #16

Workflow file for this run

name: Lint and test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
rubocop:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['3.2', '3.1', '3.0']
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby-version }}
- name: Run Rubocop
run: bundle exec rubocop
rspec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['3.2', '3.1', '3.0']
env:
COVERAGE: '1'
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby-version }}
- name: Run RSpec
run: bundle exec rspec --format d