mirror of https://github.com/rails/rails
Use built-in bundler-cache from setup-ruby action
This commit is contained in:
parent
310d62a443
commit
dd6bd200a6
|
@ -5,24 +5,17 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
BUNDLE_WITHOUT: default doc job cable storage ujs test db
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Ruby 2.7
|
- name: Set up Ruby 2.7
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.7
|
ruby-version: 2.7
|
||||||
- name: Cache gems
|
bundler-cache: true
|
||||||
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 config set without 'default doc job cable storage ujs test db'
|
|
||||||
bundle install --jobs 4 --retry 3
|
|
||||||
- name: Run RuboCop
|
- name: Run RuboCop
|
||||||
run: bundle exec rubocop --parallel
|
run: bundle exec rubocop --parallel
|
||||||
|
|
Loading…
Reference in New Issue