name: Check Project on: push: branches: - main paths-ignore: - '**.md' pull_request: paths-ignore: - '**.md' jobs: rspec: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: .ruby-version bundler-cache: true - name: Run RSpec run: bundle exec rspec - name: Upload coverage report uses: codecov/codecov-action@v3 rubocop: runs-on: ubuntu-latest permissions: contents: read pull-requests: write steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: .ruby-version bundler-cache: true - name: Run RuboCop uses: reviewdog/action-rubocop@v2 with: rubocop_version: gemfile rubocop_extensions: rubocop-performance:gemfile rubocop-rake:gemfile rubocop-rspec:gemfile github_token: ${{ secrets.github_token }} reporter: github-pr-review fail_on_error: true filter_mode: nofilter