name: Ruby on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: actions/setup-ruby@v1 with: ruby-version: 2.7.2 # https://github.com/actions/cache/blob/master/examples.md#ruby---bundler - uses: actions/cache@v1 with: path: vendor/bundle key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} restore-keys: | ${{ runner.os }}-gems- - name: Build and test with Rake run: | gem install bundler bundle install --jobs 4 --retry 3 --path vendor/bundle bundle exec rubocop