diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 8f628d2965..b0832efdc8 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -14,6 +14,20 @@ on: branches: [ master ] jobs: + lint: + name: Rubocop + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '2.7' + + - name: Install dependencies + run: bundle install + + - name: Run Rubocop + run: bundle exec rake rubocop test: name: Ruby ${{ matrix.ruby }} runs-on: ubuntu-latest @@ -44,7 +58,7 @@ jobs: ./cc-test-reporter before-build - name: Run tests - run: bundle exec rake + run: bundle exec rake test - name: Publish code coverage env: