-
Notifications
You must be signed in to change notification settings - Fork 79
40 lines (40 loc) · 1.14 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
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
ruby: ['3.0', '3.1', '3.2', '3.3']
gemfile: ['active6.1.7.8', 'active7.0.8.4', 'active7.1.3.4', 'rails6.1.7.8', 'rails7.0.8.4', 'rails7.1.3.4']
include:
- ruby: 3.1
gemfile: active7.2.0.beta3
- ruby: 3.2
gemfile: active7.2.0.beta3
- ruby: 3.3
gemfile: active7.2.0.beta3
- ruby: 3.1
gemfile: rails7.2.0.beta3
- ruby: 3.2
gemfile: rails7.2.0.beta3
- ruby: 3.3
gemfile: rails7.2.0.beta3
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:
bundler-cache: true
cache-version: 1
ruby-version: ${{ matrix.ruby }}
rubygems: 3.3.22
- run: bundle exec rubocop -P
- run: bundle exec rspec -f d spec