EmmanuelOga/ffaker

View on GitHub
.github/workflows/rubocop.yml

Summary

Maintainability
Test Coverage
name: RuboCop
on:
  pull_request:
  push:
    branches:
      - "main"
jobs:
  test:
    runs-on: ubuntu-latest
    name: RuboCop lint
    steps:
      - uses: actions/checkout@v3
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 'ruby'
          bundler-cache: true  # 'bundle install' and cache
      - name: Set up Rubocop problem matcher
        run: echo "::add-matcher::${GITHUB_WORKSPACE}/.github/rubocop.json"
      - run: bundle exec rake rubocop