Skip to content

Commit e2e7549

Browse files
committed
Replaced Travis-CI with GHA.
1 parent 0d3ea14 commit e2e7549

File tree

5 files changed

+75
-42
lines changed

5 files changed

+75
-42
lines changed

.github/workflows/rubocop.yml

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

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
- name: Setup Firefox
12+
uses: browser-actions/setup-firefox@latest
13+
with:
14+
firefox-version: "54.0"
15+
- name: Download geckodriver
16+
uses: browser-actions/setup-geckodriver@latest
17+
with:
18+
geckodriver-version: "0.18.0"
19+
- name: Set up Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: "2.7.7"
23+
bundler-cache: true
24+
- name: Start MongoDB
25+
uses: supercharge/[email protected]
26+
with:
27+
mongodb-version: "5"
28+
mongodb-db: slack_api_explorer_test
29+
- name: Run tests
30+
uses: GabrielBB/xvfb-action@v1
31+
with:
32+
run: bundle exec rake

.travis.yml

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

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source 'http://rubygems.org'
22

3-
ruby '2.6.2'
3+
ruby '2.7.7'
44

55
gem 'giphy'
66
gem 'irb'
@@ -19,7 +19,7 @@ gem 'unicorn'
1919
group :development, :test do
2020
gem 'foreman'
2121
gem 'rake'
22-
gem 'rubocop'
22+
gem 'rubocop', '0.76.0'
2323
end
2424

2525
group :development do

Gemfile.lock

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GEM
1010
tzinfo (~> 1.1)
1111
addressable (2.6.0)
1212
public_suffix (>= 2.0.2, < 4.0)
13-
ast (2.4.0)
13+
ast (2.4.2)
1414
async (1.17.1)
1515
console (~> 1.0)
1616
nio4r (~> 2.3)
@@ -103,8 +103,10 @@ GEM
103103
i18n (1.6.0)
104104
concurrent-ruby (~> 1.0)
105105
ice_nine (0.11.2)
106-
irb (1.0.0)
107-
jaro_winkler (1.5.2)
106+
io-console (0.6.0)
107+
irb (1.6.2)
108+
reline (>= 0.3.0)
109+
jaro_winkler (1.5.4)
108110
jsonpath (0.9.0)
109111
multi_json
110112
to_regexp (~> 0.2.1)
@@ -121,7 +123,7 @@ GEM
121123
mime-types-data (~> 3.2015)
122124
mime-types-data (3.2019.0331)
123125
mini_mime (1.0.1)
124-
mini_portile2 (2.4.0)
126+
mini_portile2 (2.8.1)
125127
minitest (5.11.3)
126128
mongo (2.8.0)
127129
bson (>= 4.4.2, < 5.0.0)
@@ -151,14 +153,15 @@ GEM
151153
slack-ruby-bot (>= 0.10.5)
152154
newrelic_rpm (6.2.0.354)
153155
nio4r (2.3.1)
154-
nokogiri (1.10.2)
155-
mini_portile2 (~> 2.4.0)
156+
nokogiri (1.14.0)
157+
mini_portile2 (~> 2.8.0)
158+
racc (~> 1.4)
156159
oj (3.7.12)
157-
parallel (1.17.0)
158-
parser (2.6.2.1)
159-
ast (~> 2.4.0)
160-
psych (3.1.0)
160+
parallel (1.22.1)
161+
parser (3.2.0.0)
162+
ast (~> 2.4.1)
161163
public_suffix (3.0.3)
164+
racc (1.6.2)
162165
rack (2.0.7)
163166
rack-accept (0.4.5)
164167
rack (>= 0.4)
@@ -170,10 +173,12 @@ GEM
170173
rack
171174
rack-test (1.1.0)
172175
rack (>= 1.0, < 3)
173-
rainbow (3.0.0)
176+
rainbow (3.1.1)
174177
raindrops (0.19.0)
175178
rake (12.3.2)
176179
regexp_parser (1.4.0)
180+
reline (0.3.2)
181+
io-console (~> 0.5)
177182
representable (3.0.4)
178183
declarative (< 0.1.0)
179184
declarative-option (< 0.2.0)
@@ -197,15 +202,14 @@ GEM
197202
diff-lcs (>= 1.2.0, < 2.0)
198203
rspec-support (~> 3.8.0)
199204
rspec-support (3.8.0)
200-
rubocop (0.67.2)
205+
rubocop (0.76.0)
201206
jaro_winkler (~> 1.5.1)
202207
parallel (~> 1.10)
203-
parser (>= 2.5, != 2.5.1.1)
204-
psych (>= 3.1.0)
208+
parser (>= 2.6)
205209
rainbow (>= 2.2.2, < 4.0)
206210
ruby-progressbar (~> 1.7)
207-
unicode-display_width (>= 1.4.0, < 1.6)
208-
ruby-progressbar (1.10.0)
211+
unicode-display_width (>= 1.4.0, < 1.7)
212+
ruby-progressbar (1.11.0)
209213
rubyzip (1.2.2)
210214
safe_yaml (1.0.5)
211215
selenium-webdriver (3.141.0)
@@ -245,7 +249,7 @@ GEM
245249
unf (0.1.4)
246250
unf_ext
247251
unf_ext (0.0.7.5)
248-
unicode-display_width (1.5.0)
252+
unicode-display_width (1.6.1)
249253
unicorn (5.5.0)
250254
kgio (~> 2.6)
251255
raindrops (~> 0.7)
@@ -290,7 +294,7 @@ DEPENDENCIES
290294
rack-test
291295
rake
292296
rspec
293-
rubocop
297+
rubocop (= 0.76.0)
294298
selenium-webdriver
295299
slack-ruby-bot-server
296300
slack-ruby-bot-server-mailchimp
@@ -299,7 +303,7 @@ DEPENDENCIES
299303
webmock
300304

301305
RUBY VERSION
302-
ruby 2.6.2p47
306+
ruby 2.7.7p221
303307

304308
BUNDLED WITH
305-
1.17.2
309+
2.3.26

0 commit comments

Comments
 (0)