Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚨 Setup Rubocop #208

Merged
merged 12 commits into from Oct 31, 2021
16 changes: 0 additions & 16 deletions .codeclimate.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/style.yml
@@ -0,0 +1,36 @@
name: Code Style Checks

on:
push:
branches:
- master
- '*-maintenance'
- '*-dev'
tags:
- '!*' # Do not execute on tags
pull_request:
branches:
- '*'

jobs:
rubocop:
name: Rubocop
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
strategy:
fail-fast: false
matrix:
ruby:
- 2.6
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install cURL Headers
run: sudo apt-get install libcurl4-openssl-dev
- name: Setup Ruby & Bundle
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run Rubocop
run: bundle exec rubocop -DESP
1 change: 1 addition & 0 deletions .github/workflows/supported.yml
Expand Up @@ -49,6 +49,7 @@ jobs:
- name: Run tests
run: bundle exec rake test
- uses: codecov/codecov-action@v2
if: matrix.ruby == '2.6' && github.event_name != 'pull_request'
with:
flags: unittests
name: codecov-upload
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unsupported.yml
Expand Up @@ -23,6 +23,7 @@ jobs:
- 2.5
- 2.4
- 2.3
- 2.2
runs-on: ubuntu-18.04
continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
steps:
Expand Down