Skip to content

Commit 61d90f7

Browse files
migrate CI to GitHub Actions (#552)
* setup github actions * allow failure for mongoid 6 + 7 * add jobs for active record 6 * remove 2.3 and 2.4 from matrix * remove known failing instances * add ruby 2.7 as tested ruby * remove travis configuration
1 parent 7c144ad commit 61d90f7

File tree

4 files changed

+60
-53
lines changed

4 files changed

+60
-53
lines changed

.github/workflows/activerecord.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: activerecord
2+
on: [push]
3+
jobs:
4+
ubuntu:
5+
runs-on: ubuntu-latest
6+
continue-on-error: true
7+
strategy:
8+
matrix:
9+
gemfile: [activerecord_4, activerecord_5, activerecord_6]
10+
ruby: [2.5.7, 2.6.5, 2.7.2]
11+
env:
12+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
13+
ADAPTER: active_record
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup ruby
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: ${{ matrix.ruby }}
20+
- run: sudo apt-get install -y libsqlite3-dev
21+
- run: gem update --system
22+
- run: gem install bundler
23+
- run: gem --version
24+
- run: bundle install
25+
- name: Run Tests
26+
run: |
27+
bundle exec rake

.github/workflows/mongoid.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: mongoid
2+
on: [push]
3+
jobs:
4+
ubuntu:
5+
runs-on: ubuntu-latest
6+
continue-on-error: true
7+
services:
8+
mongodb:
9+
image: mongo:3.4.23
10+
ports:
11+
- 27017:27017
12+
strategy:
13+
matrix:
14+
gemfile: [mongoid_5]
15+
ruby: [2.5.7, 2.6.5, 2.7.2]
16+
env:
17+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
18+
ADAPTER: mongoid
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Setup ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby }}
25+
- run: sudo apt-get install -y libsqlite3-dev
26+
- run: gem update --system
27+
- run: gem install bundler
28+
- run: gem --version
29+
- run: bundle install
30+
- name: Run Tests
31+
run: |
32+
bundle exec rake

.travis.yml

-52
This file was deleted.

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RSpec::Core::RakeTask.new(:rolify) do |task|
1515
task.pattern = 'spec/rolify/**/*_spec.rb'
1616
end
1717

18-
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
18+
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["CI"]
1919
task :default => :appraisal
2020
else
2121
task :default => [ :spec, 'coveralls:push' ]

0 commit comments

Comments
 (0)