From 1d1a82938fc4faaa785129c9302bb2c5083dd1ea Mon Sep 17 00:00:00 2001 From: Postmodern Date: Tue, 5 Sep 2023 07:46:29 -0700 Subject: [PATCH] Added rubocop to the GitHub Actions workflow (issue #18). --- .github/workflows/ruby.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index eddc317..fc9b39e 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -30,3 +30,17 @@ jobs: run: bundle install --jobs 4 --retry 3 - name: Run tests run: bundle exec rake test + + # rubocop linting + rubocop: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.0 + - name: Install dependencies + run: bundle install --jobs 4 --retry 3 + - name: Run rubocop + run: bundle exec rubocop --parallel