-
Notifications
You must be signed in to change notification settings - Fork 59
44 lines (41 loc) · 959 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
name: Ruby
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
fail-fast: false
matrix:
gemfile:
- rails6.1
- rails7.0
- rails7.1
ruby:
- "3.0"
- "3.1"
- "3.2"
- "3.3"
backend:
- active_record
- mongoid
name: ${{ matrix.gemfile }}, ruby ${{ matrix.ruby }}, ${{ matrix.backend }}
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
BACKEND: ${{ matrix.backend }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Start MongoDB
uses: supercharge/[email protected]
if: ${{ matrix.backend == 'mongoid' }}
- name: Run tests
run: |
bundle exec rake spec