name: Run Linters

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Set up Ruby 2.6
      uses: actions/setup-ruby@v1
      with:
        ruby-version: 2.6.x

    - name: Setup gems
      run: |
        echo "source 'https://rubygems.org'" > Gemfile
        echo "group :test do" >> Gemfile
        echo "  gem 'rubocop', require: false" >> Gemfile
        echo "  gem 'rubocop-performance', require: false" >> Gemfile
        echo "  gem 'rubocop-rails', require: false" >> Gemfile
        echo "  gem 'rubocop-rspec', require: false" >> Gemfile
        echo "  gem 'slim_lint', require: false" >> Gemfile
        echo "end" >> Gemfile
        gem install bundler
        bundle install --jobs 4 --retry 3

    - name: Run RuboCop
      run: |
        bundle exec rubocop -S

    - name: Run Slim-Lint
      run: |
        bundle exec slim-lint app/views
      if: always()

name: Run Linters

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Install package dependencies
      run: >
        sudo apt-get install --yes --quiet
        pandoc

    - name: Set up Ruby 2.6
      uses: actions/setup-ruby@v1
      with:
        ruby-version: 2.6.x

    - name: Setup gems
      run: |
        echo "source 'https://rubygems.org'" > Gemfile
        echo "group :test do" >> Gemfile
        echo "  gem 'rubocop', require: false" >> Gemfile
        echo "  gem 'rubocop-performance', require: false" >> Gemfile
        echo "  gem 'rubocop-rails', require: false" >> Gemfile
        echo "  gem 'rubocop-rspec', require: false" >> Gemfile
        echo "  gem 'slim_lint', require: false" >> Gemfile
        echo "  gem 'pandoc-ruby', require: false" >> Gemfile
        echo "end" >> Gemfile
        gem install bundler
        bundle install --jobs 4 --retry 3

    - name: Run RuboCop
      run: |
        bundle exec rubocop -S

    - name: Run Slim-Lint
      run: |
        bundle exec slim-lint app/views
      if: always()

Add pandoc-ruby to make slim-lint happy
Add pandoc-ruby to make slim-lint happy
