-
-
Notifications
You must be signed in to change notification settings - Fork 75
37 lines (37 loc) · 1.23 KB
/
test-mongodb.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
---
name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
entry:
- { ruby: 2.6.2, mongoid: 6.4.8, mongodb: 4.4 }
- { ruby: 2.6.2, mongoid: 7.2.3, mongodb: 4.4 }
- { ruby: 2.6.2, mongoid: 7.3.0, mongodb: 4.4 }
- { ruby: 3.1.1, mongoid: 7.3.0, mongodb: 4.4 }
- { ruby: 3.1.1, mongoid: 7.3.0, mongodb: 5.0 }
- { ruby: 3.2.1, mongoid: 7.5.2, mongodb: 5.0 }
name: test (ruby=${{ matrix.entry.ruby }}, mongoid=${{ matrix.entry.mongoid }}, mongodb=${{ matrix.entry.mongodb }})
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.entry.ruby }}
- uses: browser-actions/setup-geckodriver@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: geckodriver --version
- uses: supercharge/mongodb-github-action@1.7.0
with:
mongodb-version: ${{ matrix.entry.mongodb }}
- name: Test
uses: GabrielBB/xvfb-action@v1
env:
DATABASE_ADAPTER: mongoid
MONGOID_VERSION: ${{ matrix.entry.mongoid }}
with:
run: |
bundle install
bundle exec rake spec