Skip to content

Commit 3ba2acf

Browse files
authored
Merge pull request #38 from dblock/gha
Replaced Travis CI with GHA.
2 parents 32852a3 + 2238f9a commit 3ba2acf

12 files changed

+175
-127
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [dblock]

.github/workflows/rubocop.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Rubocop
2+
on: [push, pull_request]
3+
jobs:
4+
lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Set up Ruby
9+
uses: ruby/setup-ruby@v1
10+
with:
11+
ruby-version: 2.6.5
12+
bundler-cache: true
13+
- run: bundle exec rubocop

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Tests
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Set up Ruby
9+
uses: ruby/setup-ruby@v1
10+
with:
11+
ruby-version: 2.6.5
12+
bundler-cache: true
13+
- uses: browser-actions/setup-geckodriver@latest
14+
with:
15+
geckodriver-version: 0.18.0
16+
- uses: browser-actions/setup-firefox@latest
17+
with:
18+
firefox-version: '54.0'
19+
- uses: GabrielBB/xvfb-action@v1
20+
with:
21+
run: |
22+
bundle exec rake spec

.rubocop.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
AllCops:
2+
NewCops: enable
23
Exclude:
34
- vendor/**/*
45

56
Metrics:
67
Enabled: false
78

8-
Metrics/LineLength:
9+
Layout/LineLength:
910
Max: 256
1011
Enabled: false
1112

.rubocop_todo.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,43 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2019-11-16 11:24:41 -0500 using RuboCop version 0.76.0.
3+
# on 2022-06-18 00:01:02 UTC using RuboCop version 1.30.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

99
# Offense count: 1
10-
Lint/AmbiguousBlockAssociation:
10+
# This cop supports unsafe autocorrection (--autocorrect-all).
11+
Lint/NonDeterministicRequireOrder:
1112
Exclude:
12-
- 'api/entities.rb'
13+
- 'config/application.rb'
1314

1415
# Offense count: 1
1516
Lint/UriEscapeUnescape:
1617
Exclude:
1718
- 'api/upload_file.rb'
1819

1920
# Offense count: 1
20-
# Cop supports --auto-correct.
21+
# This cop supports safe autocorrection (--autocorrect).
2122
# Configuration parameters: EnforcedStyle.
2223
# SupportedStyles: line_count_dependent, lambda, literal
2324
Style/Lambda:
2425
Exclude:
2526
- 'app/acme_app.rb'
2627

2728
# Offense count: 1
28-
# Cop supports --auto-correct.
29+
# This cop supports unsafe autocorrection (--autocorrect-all).
30+
Style/MapToHash:
31+
Exclude:
32+
- 'spec/api/documentation_spec.rb'
33+
34+
# Offense count: 1
35+
Style/OpenStructUse:
36+
Exclude:
37+
- 'api/entities.rb'
38+
39+
# Offense count: 1
40+
# This cop supports safe autocorrection (--autocorrect).
2941
Style/RescueModifier:
3042
Exclude:
3143
- 'api/get_json.rb'

.travis.yml

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

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ group :development do
1818
gem 'guard-rack'
1919
gem 'rake'
2020
gem 'rubocop'
21+
gem 'rubocop-rake'
22+
gem 'rubocop-rspec'
2123
end
2224

2325
group :test do

0 commit comments

Comments
 (0)