-
Notifications
You must be signed in to change notification settings - Fork 129
72 lines (70 loc) · 1.81 KB
/
test.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI RSpec Test
on: [push, pull_request]
jobs:
build:
name: >-
${{ matrix.ruby }}
env:
CI: true
TESTOPTS: -v
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
ruby: [2.5, 2.6, 2.7, 3.0, jruby] # truffleruby
mongoid: [7]
experimental: [false]
include:
- ruby: 2.3
mongoid: 3
experimental: false
- ruby: 2.4
mongoid: 4
experimental: false
- ruby: 2.5
mongoid: 5
experimental: false
- ruby: 2.6
mongoid: 6
experimental: false
- ruby: 2.7
mongoid: 7.0
experimental: false
- ruby: 2.7
mongoid: 7.1
experimental: false
- ruby: 2.7
mongoid: 7.2
experimental: false
- ruby: 2.7
mongoid: 7.3
experimental: false
- ruby: head
mongoid: 7
experimental: true
- ruby: jruby-head
mongoid: 7
experimental: true
# - ruby: truffleruby-head
# mongoid: 7
# experimental: true
steps:
- name: repo checkout
uses: actions/checkout@v2
- name: start mongodb
uses: supercharge/mongodb-github-action@1.6.0
with:
mongodb-version: 4.4
mongodb-replica-set: rs0
- name: load ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 2
- name: bundle install
run: bundle install --jobs 4 --retry 3
- name: test
timeout-minutes: 10
run: bundle exec rake spec
continue-on-error: ${{ matrix.experimental }}