Skip to content

Commit ebe49b2

Browse files
committed
Move to github workflows.
1 parent 1added9 commit ebe49b2

File tree

3 files changed

+27
-21
lines changed

3 files changed

+27
-21
lines changed

.github/workflows/ruby.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Ruby
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
ruby-version: ['2.6', '2.7']
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ matrix.ruby-version }}
22+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
23+
- name: Run tests
24+
run: bundle exec rake
25+
- name: Rubocop
26+
run: bundle exec rubocop

.travis.yml

-20
This file was deleted.

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ task :rubocop do
1919
RuboCop::RakeTask.new
2020
end
2121

22-
task test: [:rubocop] do
22+
task :test do
2323
system('open coverage/index.html')
2424
end
2525

0 commit comments

Comments
 (0)