Skip to content

Commit dc5118f

Browse files
committed
Replace travis-ci with github-actions
1 parent a0961f6 commit dc5118f

File tree

2 files changed

+39
-40
lines changed

2 files changed

+39
-40
lines changed

Diff for: .github/workflows/ci.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
mongodb: ["4.4"]
14+
ruby: ["2.5", "2.6", "2.7", "3.0"]
15+
gemfile:
16+
- mongoid-3.1
17+
- mongoid-4.0
18+
- mongoid-5.0
19+
- mongoid-6.0
20+
- mongoid-7.0
21+
- mongoid-8.0
22+
23+
env:
24+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
25+
steps:
26+
- name: Set up MongoDB ${{ matrix.mongodb }}
27+
uses: supercharge/[email protected]
28+
with:
29+
mongodb-version: ${{ matrix.mongodb }}
30+
# https://github.com/marketplace/actions/checkout
31+
- uses: actions/checkout@v2
32+
# https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
33+
- name: Set up Ruby
34+
uses: ruby/setup-ruby@v1
35+
with:
36+
ruby-version: ${{ matrix.ruby }}
37+
bundler-cache: true
38+
- name: Run tests
39+
run: bundle exec rake

Diff for: .travis.yml

-40
This file was deleted.

0 commit comments

Comments
 (0)