-
Notifications
You must be signed in to change notification settings - Fork 22
63 lines (61 loc) · 1.71 KB
/
test.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
54
55
56
57
58
59
60
61
62
63
name: Run tests
on:
pull_request:
push:
branches:
- '**'
tags-ignore:
- 'v*'
schedule:
- cron: '42 0 1 * *' # on 1st day of every month at 00:42
jobs:
test:
name: 'ActiveRecord ${{ matrix.activerecord }} on Ruby ${{ matrix.ruby }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ruby: '2.6'
activerecord: '5.2'
gemfile: 'activerecord_5_2.gemfile'
- ruby: '2.6'
activerecord: '5.1'
gemfile: 'activerecord_5_1.gemfile'
- ruby: '2.7'
activerecord: '6.0'
gemfile: 'activerecord_6_0.gemfile'
- ruby: '2.7'
activerecord: '6.1'
gemfile: 'activerecord_6_1.gemfile'
- ruby: '3.0'
activerecord: '7.0'
gemfile: 'activerecord_7_0.gemfile'
- ruby: '3.1'
activerecord: '7.0'
gemfile: 'activerecord_7_0.gemfile'
- ruby: '3.0'
activerecord: '7.1'
gemfile: 'activerecord_7_1.gemfile'
- ruby: '3.1'
activerecord: '7.1'
gemfile: 'activerecord_7_1.gemfile'
- ruby: '3.2'
activerecord: '7.1'
gemfile: 'activerecord_7_1.gemfile'
- ruby: '3.2'
activerecord: 'HEAD'
gemfile: 'activerecord_master.gemfile'
env:
CI: true
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run RSpec
run: bundle exec rspec