mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
bf41204490
- Annotations feature provided by lint-action is not working with PRs from fork repos - pull_request_target feature is also not behaving reliably - Remove hound - Not using bundler-cache: true for caching as it uses uses ./vendor/bundle as bundle path and rubocop lint vendor as well. So caching under ../vendor/bundle using actions/cache - Using actions/cache@v1 rather v2 as gems are not getting cached due to unknown reason
30 lines
636 B
YAML
30 lines
636 B
YAML
name: RuboCop
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
|
|
- name: Cache gems
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ../vendor/bundle
|
|
key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-rubocop-
|
|
|
|
- name: Install gems
|
|
run: |
|
|
bundle config path ../vendor/bundle
|
|
bundle install --jobs 4 --retry 3
|
|
|
|
- name: Run RuboCop
|
|
run: bundle exec rubocop --parallel
|