-
Notifications
You must be signed in to change notification settings - Fork 28
37 lines (34 loc) · 893 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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
strategy:
matrix:
ruby:
- '3.0'
- '3.1'
- '3.2'
gemfile:
- Gemfile
- gemfiles/rails-6.0.gemfile
- gemfiles/rails-6.1.gemfile
- gemfiles/rails-7.0.gemfile
- gemfiles/rails-edge.gemfile
exclude:
# Rails Edge only supports Ruby >= 3.1
- ruby: '3.0'
gemfile: gemfiles/rails-edge.gemfile
name: Ruby ${{ matrix.ruby }} ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v1
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: |
bundle exec rake