-
Notifications
You must be signed in to change notification settings - Fork 36
89 lines (68 loc) · 1.84 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ '**' ]
# UTC Tuesdays 0900. note, no notifications will be sent for failed scheduled builds. :(
schedule:
- cron: '0 9 * * TUE'
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
jobs:
tests:
services:
db:
# used to be 9.4, should work on 9.4, only moved to 10.0
# because of rails 7.1 bug (rails intends to support 9 too!)
# https://github.com/jrochkind/attr_json/issues/211
image: postgres:10.0
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports: ['5432:5432']
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- gemfile: rails_6_0
ruby: 2.7
- gemfile: rails_6_0
ruby: '3.0'
- gemfile: rails_6_1
ruby: 2.7
- gemfile: rails_6_1
ruby: '3.0'
- gemfile: rails_7_0
ruby: '3.0'
- gemfile: rails_7_0
ruby: 3.1
- gemfile: rails_7_0
ruby: 3.2
- gemfile: rails_7_1
ruby: '3.0'
- gemfile: rails_7_1
ruby: 3.1
- gemfile: rails_7_1
ruby: 3.2
- gemfile: rails_7_1
ruby: 3.3
- gemfile: rails_7_2
ruby: 3.3
name: ${{ matrix.gemfile }}, ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: false
- name: Bundle install
run: |
bundle config set gemfile "${GITHUB_WORKSPACE}/gemfiles/${{ matrix.gemfile }}.gemfile"
bundle install --jobs 4 --retry 3
- name: Run tests
run: |
bundle exec rspec