Skip to content

Commit

Permalink
Merge pull request #208 from oauth-xx/issue/205-lock-rubocop-down
Browse files Browse the repository at this point in the history
🚨 Setup Rubocop
  • Loading branch information
pboling committed Oct 31, 2021
2 parents 6182027 + 90fbb9b commit fec9a27
Show file tree
Hide file tree
Showing 77 changed files with 2,370 additions and 2,076 deletions.
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

0 comments on commit fec9a27

Please sign in to comment.