Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from oauth-xx/issue/205-lock-rubocop-down
🚨 Setup Rubocop
- Loading branch information
Showing
77 changed files
with
2,370 additions
and
2,076 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.