Suppress the warning about requiring the json.rb file #84
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: Rubocop Check | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
paths: | |
- ".rubocop*.yml" | |
- ".github/workflows/rubocop.yml" | |
- "lib/**/*.rb" | |
- "test/*.rb" | |
- "**/*.gemspec" | |
- "**/*.gemfile" | |
- "Gemfile" | |
pull_request: | |
paths: | |
- ".rubocop*.yml" | |
- ".github/workflows/rubocop.yml" | |
- "lib/**/*.rb" | |
- "test/*.rb" | |
- "**/*.gemspec" | |
- "**/*.gemfile" | |
- "Gemfile" | |
jobs: | |
formatting-check: | |
name: Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.2" | |
bundler-cache: true | |
- name: Set-up RuboCop Problem Matcher | |
uses: r7kamura/rubocop-problem-matchers-action@v1 | |
- name: Run rubocop | |
run: bundle exec rubocop |