Skip to content

Add memory and cpu limits to exercises #154

Add memory and cpu limits to exercises

Add memory and cpu limits to exercises #154

Workflow file for this run

name: RuboCop
on:
push:
branches: [ master, bs4 ]
pull_request:
branches: [ master, bs4 ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- 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