Skip to content

Merge pull request #178 from nhoizey/dependabot/bundler/cloudinary-1.… #193

Merge pull request #178 from nhoizey/dependabot/bundler/cloudinary-1.…

Merge pull request #178 from nhoizey/dependabot/bundler/cloudinary-1.… #193

Workflow file for this run

name: RuboCop
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
ruby-version: [head, 2.7.4]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Cache gems
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ matrix.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ matrix.os }}-rubocop-
- name: Install gems
run: |
wget https://raw.githubusercontent.com/jekyll/jekyll/master/.rubocop_todo.yml --directory-prefix="$(bundle show jekyll)";
bundle install --jobs $(nproc) --retry 3
bundle exec rspec
bundle exec rake
bundle exec rubocop --parallel
if: matrix.os == 'ubuntu-latest'
- name: Install gems
run: |
wget https://raw.githubusercontent.com/jekyll/jekyll/master/.rubocop_todo.yml --directory-prefix="$(bundle show jekyll)";
bundle install --jobs $env:NUMBER_OF_PROCESSORS --retry 3
bundle exec rspec
bundle exec rake
bundle exec rubocop --parallel
if: matrix.os == 'windows-latest'
- name: Install gems
run: |
wget https://raw.githubusercontent.com/jekyll/jekyll/master/.rubocop_todo.yml --directory-prefix="$(bundle show jekyll)";
bundle install --jobs $(sysctl -n hw.logicalcpu) --retry 3
bundle exec rspec
bundle exec rake
bundle exec rubocop --parallel
if: matrix.os == 'macOS-latest'