Skip to content

Merge pull request #221 from r7kamura/fix-config-default #25

Merge pull request #221 from r7kamura/fix-config-default

Merge pull request #221 from r7kamura/fix-config-default #25

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
rubocop:
runs-on: ubuntu-latest
env:
BUNDLE_ONLY: default:rubocop
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.cache/rubocop_cache
key: rubocop-v1-${{ hashFiles('.rubocop.yml', '.rubocop_todo.yml', 'Gemfile.lock') }}
restore-keys: |
rubocop-v1-${{ hashFiles('.rubocop.yml', '.rubocop_todo.yml', 'Gemfile.lock') }}
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3
- run: bundle exec rubocop --format github --format progress
rspec:
name: rspec ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.3'
runs-on: ubuntu-latest
env:
BUNDLE_ONLY: default:test
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- run: bundle exec rspec