Adds rubocop GH action. (#823)

- updates grape version to latest
This commit is contained in:
peter scholz 2021-03-16 00:17:58 +01:00 committed by GitHub
parent ac09d8c0c6
commit 82fca50f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 1 deletions

14
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "bundler" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
day: "friday"
assignees:
- "LeFnord"

26
.github/workflows/rubocop.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Rubocop
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
rubocop:
name: Rubocop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: '3.0'
- run: gem install rubocop --no-doc
- run: rubocop --format progress --format json --out rubocop.json
id: rubocop
- uses: duderman/rubocop-annotate-action@v0.1.0
with:
path: rubocop.json
if: ${{ failure() }}

View File

@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0']
grape-version: [1.5.2, 1.4.0, 1.3.3]
grape-version: [1.5.3, 1.4.0, 1.3.3]
model-parser: [grape-swagger-entity, grape-swagger-representable, '']
steps: