-
Notifications
You must be signed in to change notification settings - Fork 51
43 lines (42 loc) · 1.93 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
entry:
- { ruby: '2.6', mongodb: '4.4', gemfile: 'mongoid-4.0', bundler: '1.17.3' }
- { ruby: '2.7', mongodb: '4.4', gemfile: 'mongoid-5.0', bundler: '1.17.3' }
- { ruby: '2.7', mongodb: '4.4', gemfile: 'mongoid-6.0' }
- { ruby: '2.7', mongodb: '4.4', gemfile: 'mongoid-7.0' }
- { ruby: '2.7', mongodb: '4.4', gemfile: 'mongoid-8.0' }
- { ruby: '3.0', mongodb: '4.4', gemfile: 'mongoid-8.0' }
- { ruby: '3.1', mongodb: '4.4', gemfile: 'mongoid-8.0' }
- { ruby: '3.2', mongodb: '4.4', gemfile: 'mongoid-8.0' }
- { ruby: '3.1', mongodb: '4', gemfile: 'mongoid-9.0' }
- { ruby: '3.1', mongodb: '5', gemfile: 'mongoid-9.0' }
- { ruby: '3.1', mongodb: '6', gemfile: 'mongoid-9.0' }
- { ruby: '3.2', mongodb: '4', gemfile: 'mongoid-9.0' }
- { ruby: '3.2', mongodb: '5', gemfile: 'mongoid-9.0' }
- { ruby: '3.2', mongodb: '6', gemfile: 'mongoid-9.0' }
- { ruby: '3.3', mongodb: '4', gemfile: 'mongoid-9.0' }
- { ruby: '3.3', mongodb: '5', gemfile: 'mongoid-9.0' }
- { ruby: '3.3', mongodb: '6', gemfile: 'mongoid-9.0' }
name: test (ruby=${{ matrix.entry.ruby }}, mongodb=${{ matrix.entry.mongodb }}), gemfile=${{ matrix.entry.gemfile }})
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.entry.gemfile }}.gemfile
steps:
- name: Set up MongoDB ${{ matrix.entry.mongodb }}
uses: supercharge/mongodb-github-action@1.8.0
with:
mongodb-version: ${{ matrix.entry.mongodb }}
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.entry.ruby }}
bundler: '${{ matrix.entry.bundler || 1 }}'
bundler-cache: true
- name: Run tests
run: bundle exec rake