-
-
Notifications
You must be signed in to change notification settings - Fork 14
33 lines (33 loc) · 1.25 KB
/
Copy pathtest-mongodb.yml
File metadata and controls
33 lines (33 loc) · 1.25 KB
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
---
name: test-mongodb
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
entry:
- { ruby: '3.4', mongoid: '~> 6.4.8', mongodb: '6.0', grape: '~> 1.7.0' }
- { ruby: '3.4', mongoid: '~> 6.4.8', mongodb: '6.0', grape: '~> 2.0.0' }
- { ruby: '3.4', mongoid: '~> 7.5.4', mongodb: '7.0', grape: '~> 2.4.0' }
- { ruby: '3.4', mongoid: '~> 8.1.11', mongodb: '8.0', grape: '~> 2.4.0' }
- { ruby: '3.4', mongoid: '~> 9.0.8', mongodb: '8.0', grape: '~> 2.4.0' }
name: test (ruby=${{ matrix.entry.ruby }}, mongoid=${{ matrix.entry.mongoid }}, mongodb=${{ matrix.entry.mongodb }}, grape=${{ matrix.entry.grape }})
env:
MONGOID_VERSION: ${{ matrix.entry.mongoid }}
GRAPE_VERSION: ${{ matrix.entry.grape }}
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.entry.ruby }}
bundler-cache: true
- uses: supercharge/mongodb-github-action@1.12.1
with:
mongodb-version: ${{ matrix.entry.mongodb }}
- name: Run Tests
run: bundle exec rake
- name: Run Mongoid Tagged Tests
env:
SPEC_OPTS: --tag mongoid
run: bundle exec rake