-
Notifications
You must be signed in to change notification settings - Fork 216
53 lines (50 loc) · 1.15 KB
/
main.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
49
50
51
52
53
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
strategy:
fail-fast: false
matrix:
os:
- ubuntu
ruby:
- 2.5
- 2.6
- 2.7
gemfile:
- gemfiles/rails_5_1.gemfile
- gemfiles/rails_5_2.gemfile
- gemfiles/rails_6.gemfile
- gemfiles/rails_6_1.gemfile
continue-on-error:
- false
include:
- ruby: "3.0"
gemfile: gemfiles/rails_6_1.gemfile
os: ubuntu
continue-on-error: false
- ruby: 3.1
gemfile: gemfiles/rails_7_0.gemfile
os: ubuntu
continue-on-error: false
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ matrix.continue-on-error }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test
run: bundle exec rake spec
# use this