chore: Fix code style #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ruby | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
lib: | |
- docrb | |
- docrb-html | |
- docrb-parser | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./lib/${{ matrix.lib }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
- name: Install dependencies | |
run: bundle install | |
- name: Run Rubocop | |
run: bundle exec rubocop | |
- name: Run rspec | |
run: bundle exec rspec |