diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml new file mode 100644 index 0000000..b875c40 --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -0,0 +1,20 @@ +name: Lint Ruby + +on: + push: + branches: + - master + pull_request: + +jobs: + rubocop: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + - name: Lint Ruby code with RuboCop + run: | + bundle install --jobs 4 --retry 3 + bundle exec rubocop diff --git a/.rubocop.yml b/.rubocop.yml index f6bc5e3..bc8cc30 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -14,7 +14,7 @@ AllCops: - 'gemfiles/vendor/**/*' - 'clowne.gemspec' DisplayCopNames: true - TargetRubyVersion: 2.5 + TargetRubyVersion: 2.7 Markdown: WarnInvalid: true