forked from Casecommons/with_model
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (59 loc) · 1.89 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: build
on:
push:
branches:
- master
- github-actions
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
env:
CI: true
strategy:
fail-fast: false
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1']
active-record-version-env:
- ACTIVE_RECORD_VERSION="~> 5.2.0"
- ACTIVE_RECORD_VERSION="~> 6.0.0"
- ACTIVE_RECORD_VERSION="~> 6.1.0"
- ACTIVE_RECORD_VERSION="~> 7.0.0"
allow-failure: [false]
include:
- ruby-version: '3.1'
active-record-version-env: ACTIVE_RECORD_VERSION="~> 7.0.0"
allow-failure: true
- ruby-version: '3.1'
active-record-version-env: ACTIVE_RECORD_BRANCH="7-0-stable"
allow-failure: true
- ruby-version: '3.1'
active-record-version-env: ACTIVE_RECORD_BRANCH="6-1-stable"
allow-failure: true
exclude:
- ruby-version: '3.0'
active-record-version-env: ACTIVE_RECORD_VERSION="~> 5.2.0"
allow-failure: false
- ruby-version: '3.1'
active-record-version-env: ACTIVE_RECORD_VERSION="~> 5.2.0"
allow-failure: false
- ruby-version: '2.6'
active-record-version-env: ACTIVE_RECORD_VERSION="~> 7.0.0"
allow-failure: false
- ruby-version: '3.1'
active-record-version-env: ACTIVE_RECORD_VERSION="~> 7.0.0"
allow-failure: false
continue-on-error: ${{ matrix.allow-failure }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Update bundle
run: ${{ matrix.active-record-version-env }} bundle update
- name: Run tests
run: ${{ matrix.active-record-version-env }} bin/rake