-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (40 loc) · 969 Bytes
/
ci.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- 3.1
- 3.2
rails_version:
- 6.1.6.1
- 7.0.3.1
- 7.1.1
include:
- ruby: '2.7.8' # Rails 6.0 will not run on Ruby 3
rails_version: '6.0.5.1'
- ruby: '2.7.8' # Rails 5.2 will not run on Ruby 3
rails_version: '5.2.8.1'
- ruby: '3.3.0'
rails_version: '7.1.1'
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 'latest'
- name: Install dependencies
run: bundle install
env:
RAILS_VERSION: ${{ matrix.rails_version }}
- name: Run tests
run: bundle exec rake
env:
RAILS_VERSION: ${{ matrix.rails_version }}