-
Notifications
You must be signed in to change notification settings - Fork 45
46 lines (44 loc) · 918 Bytes
/
ruby.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
name: Ruby
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- jruby
- 2.4.10
- 2.5.9
- 2.6.10
- 2.7.8
- 3.0.6
- 3.1.4
mongo-image:
- mongo:4.2
- mongo:4.4
- mongo:5.0
- mongo:6.0
- mongo:7.0
services:
mongo:
image: ${{ matrix.mongo-image }}
ports:
- 27017:27017
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby-version }}"
- name: Install dependencies
run: |
rm Gemfile.lock
bundle install --without guard
- name: Run tests
run: "bundle exec rake"