Skip to content

Commit fec9a27

Browse files
authored
Merge pull request #208 from oauth-xx/issue/205-lock-rubocop-down
🚨 Setup Rubocop
2 parents 6182027 + 90fbb9b commit fec9a27

File tree

77 files changed

+2370
-2076
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2370
-2076
lines changed

.codeclimate.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/style.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Code Style Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '*-maintenance'
8+
- '*-dev'
9+
tags:
10+
- '!*' # Do not execute on tags
11+
pull_request:
12+
branches:
13+
- '*'
14+
15+
jobs:
16+
rubocop:
17+
name: Rubocop
18+
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
ruby:
23+
- 2.6
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v2
28+
- name: Install cURL Headers
29+
run: sudo apt-get install libcurl4-openssl-dev
30+
- name: Setup Ruby & Bundle
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
ruby-version: ${{ matrix.ruby }}
34+
bundler-cache: true
35+
- name: Run Rubocop
36+
run: bundle exec rubocop -DESP

.github/workflows/supported.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
- name: Run tests
5050
run: bundle exec rake test
5151
- uses: codecov/codecov-action@v2
52+
if: matrix.ruby == '2.6' && github.event_name != 'pull_request'
5253
with:
5354
flags: unittests
5455
name: codecov-upload

.github/workflows/unsupported.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- 2.5
2424
- 2.4
2525
- 2.3
26+
- 2.2
2627
runs-on: ubuntu-18.04
2728
continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
2829
steps:

0 commit comments

Comments
 (0)