Skip to content

Commit 094cf3a

Browse files
authored
Merge pull request #5 from rcclemente/rcclemente-patch-1
create ruby.yml workflow
2 parents afdf653 + 2ac271c commit 094cf3a

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

.github/workflows/ruby.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: Ruby
9+
10+
on:
11+
push:
12+
branches: [ master ]
13+
pull_request:
14+
branches: [ master ]
15+
16+
jobs:
17+
test:
18+
19+
runs-on: ubuntu-latest
20+
name: Ruby ${{ matrix.java }}
21+
strategy:
22+
matrix:
23+
ruby: [2.5]
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up Ruby ${{ matrix.ruby }}
28+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
29+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
30+
# uses: ruby/setup-ruby@v1
31+
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
32+
with:
33+
ruby-version: ${{ matrix.ruby }}
34+
35+
- name: Install dependencies
36+
run: bundle install
37+
38+
- name: Run tests
39+
run: bundle exec rake test
40+
41+
- name: Rubocop checks
42+
run: bundle exec rake rubocop
File renamed without changes.

Rakefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ require "bundler/gem_tasks"
44
require "bump/tasks"
55

66
require "yaml"
7-
travis = YAML.load_file(Bundler.root.join('.travis.yml'))
8-
.fetch('env')
9-
.map { |v| v.delete('TASK=') }
10-
11-
task default: travis
127

138
require "rake/testtask"
149
Rake::TestTask.new :test do |t|

0 commit comments

Comments
 (0)