-
Notifications
You must be signed in to change notification settings - Fork 78
48 lines (48 loc) · 1.33 KB
/
build.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
47
48
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
ruby: ['2.5', '2.6', '2.7', '3.0']
gemfile: ['active6.0.3.6', 'active6.1.3.1', 'rails6.0.3.6', 'rails6.1.3.1']
include:
- ruby: '2.5'
gemfile: active5.2.5
- ruby: '2.6'
gemfile: active5.2.5
- ruby: '2.7'
gemfile: active5.2.5
- ruby: '2.5'
gemfile: rails5.2.5
- ruby: '2.6'
gemfile: rails5.2.5
- ruby: '2.7'
gemfile: rails5.2.5
- ruby: '2.7'
gemfile: active7.0.0
- ruby: '3.0'
gemfile: active7.0.0
- ruby: '2.7'
gemfile: rails7.0.0
- ruby: '3.0'
gemfile: rails7.0.0
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
RUBY_OPT: --disable=did_you_mean
services:
mongodb:
image: mongo:4.4.10
ports:
- 8081:8081
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
cache-version: 1
- run: bundle install --jobs 2 --retry 3
- run: bundle exec rubocop -P
- run: bundle exec rspec -f d spec