forked from lolychee/mongoid-association_scope
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.14 KB
/
main.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
name: Ruby
on: [push,pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby-version: ['2.5', '2.6', '2.7', '3.0']
mongodb-version: ['4.0']
gemfile: [mongoid5, mongoid6]
exclude:
- ruby-version: '2.7'
mongodb-version: '4.0'
gemfile: mongoid5
- ruby-version: '3.0'
mongodb-version: '4.0'
gemfile: mongoid5
- ruby-version: '3.0'
mongodb-version: '4.0'
gemfile: mongoid6
runs-on: ubuntu-latest
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.4.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Run the test
run: bundle exec rspec