Skip to content

Commit 06dbb02

Browse files
authored
Adds GH actions. (#346)
- adds ruby 3.0.0 - removes 2.4.10 tests - adds changelog entry - removes travis.yml
1 parent dedbf0b commit 06dbb02

File tree

4 files changed

+61
-1
lines changed

4 files changed

+61
-1
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "bundler" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
day: "friday"
13+
assignees:
14+
- "LeFnord"

.github/workflows/rubocop.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Rubocop
2+
3+
on: push
4+
5+
jobs:
6+
rubocop:
7+
name: Rubocop
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-ruby@v1
12+
with:
13+
ruby-version: '3.0'
14+
- run: gem install rubocop --no-doc
15+
- run: rubocop --format progress --format json --out rubocop.json
16+
id: rubocop
17+
- uses: duderman/[email protected]
18+
with:
19+
path: rubocop.json
20+
if: ${{ failure() }}

.github/workflows/ruby.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Ruby
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
spec:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
ruby-version: ['2.6', '2.7', '3.0', head, jruby, truffleruby]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: ${{ matrix.ruby-version }}
24+
bundler-cache: true
25+
- name: Run rspec
26+
run: bundle exec rspec

grape-entity.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
1414
s.description = 'Extracted from Grape, A Ruby framework for rapid API development with great conventions.'
1515
s.license = 'MIT'
1616

17-
s.required_ruby_version = '>= 2.4'
17+
s.required_ruby_version = '>= 2.5'
1818

1919
s.add_runtime_dependency 'activesupport', '>= 3.0.0'
2020
# FIXME: remove dependecy

0 commit comments

Comments
 (0)