Skip to content

Commit 5699af7

Browse files
authored
Merge pull request #40 from mvz/test-with-github-actions
Replace Travis CI with GitHub Actions for running tests
2 parents 21a3d4f + 150a62a commit 5699af7

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Tests
2+
on: [push]
3+
4+
jobs:
5+
ruby:
6+
name: Ruby Tests
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
ruby-version: [ "2.3", "2.4", "2.5", "2.6", "2.7", "3.0" ]
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Setup Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
bundler-cache: true
19+
ruby-version: ${{ matrix.ruby-version }}
20+
- name: Run Tests
21+
run: bundle exec rake test

.travis.yml

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

test/test_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
add_filter "test/"
77
end
88

9+
require "rr"
10+
911
require "minitest/reporters/turn_reporter"
1012
MiniTest::Reporters.use! Minitest::Reporters::TurnReporter.new
1113

1214
require "shoulda/context"
1315
require "pry"
14-
require "rr"
1516
require "minitest/autorun"

0 commit comments

Comments
 (0)