-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (35 loc) · 937 Bytes
/
test.yml
File metadata and controls
42 lines (35 loc) · 937 Bytes
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
name: Test
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:4.4
ports:
- 27017:27017
strategy:
fail-fast: false
matrix:
entry:
- { ruby: '2.7', mongoid: '3' }
- { ruby: '2.7', mongoid: '4' }
- { ruby: '2.7', mongoid: '5' }
- { ruby: '3.3', mongoid: '6' }
- { ruby: '2.7', mongoid: '7' }
- { ruby: '3.2', mongoid: '8' }
- { ruby: '3.3', mongoid: '9' }
name: test (ruby=${{ matrix.entry.ruby }}, mongoid=${{ matrix.entry.mongoid }})
env:
MONGOID_VERSION: ${{ matrix.entry.mongoid }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '${{ matrix.entry.ruby }}'
bundler-cache: true
- name: Run Tests
run: bundle exec rake