Skip to content

[#499] Create a Rubocop cop for ordering instructions in class (e.g. … #852

[#499] Create a Rubocop cop for ordering instructions in class (e.g. …

[#499] Create a Rubocop cop for ordering instructions in class (e.g. … #852

Workflow file for this run

name: Test the codebase of the template
on: push
env:
RUBY_VERSION: 3.2.2
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Installation and linting
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- name: Cache gems
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-template-${{ env.RUBY_VERSION }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-template-${{ env.RUBY_VERSION }}-
- name: Install gems
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run RuboCop
run: bundle exec rubocop --config .template/.rubocop.yml --parallel