-
Notifications
You must be signed in to change notification settings - Fork 13
142 lines (141 loc) · 4.44 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: Test
on:
- push
- pull_request
jobs:
unit:
name: "Unit: ${{ matrix.name }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: "Ruby 3.3 & Rails 7"
ruby-version: "3.3"
rails-version: "7"
- name: "Ruby 3.2 & Rails 7"
ruby-version: "3.2"
rails-version: "7"
- name: "Ruby 3.1 & Rails 7"
ruby-version: "3.1"
rails-version: "7"
- name: "Ruby 3.0 & Rails 7"
ruby-version: "3.0"
rails-version: "7"
- name: "Ruby 2.7 & Rails 7"
ruby-version: "2.7"
rails-version: "7"
- name: "Ruby 3.3 & Rails 7.0"
ruby-version: "3.3"
rails-version: "7.0"
- name: "Ruby 3.2 & Rails 7.0"
ruby-version: "3.2"
rails-version: "7.0"
- name: "Ruby 3.1 & Rails 7.0"
ruby-version: "3.1"
rails-version: "7.0"
- name: "Ruby 3.0 & Rails 7.0"
ruby-version: "3.0"
rails-version: "7.0"
- name: "Ruby 2.7 & Rails 7.0"
ruby-version: "2.7"
rails-version: "7.0"
- name: "Ruby 3.0 & Rails 6"
ruby-version: "3.0"
rails-version: "6"
- name: "Ruby 2.7 & Rails 6"
ruby-version: "2.7"
rails-version: "6"
- name: "Ruby 2.6 & Rails 6"
ruby-version: "2.6"
rails-version: "6"
- name: "Ruby 2.5 & Rails 6"
ruby-version: "2.5"
rails-version: "6"
- name: "Ruby 2.7 & Rails 6.0"
ruby-version: "2.7"
rails-version: "6.0"
- name: "Ruby 2.6 & Rails 6.0"
ruby-version: "2.6"
rails-version: "6.0"
- name: "Ruby 2.5 & Rails 6.0"
ruby-version: "2.5"
rails-version: "6.0"
- name: "Ruby 2.7 & Rails 5"
ruby-version: "2.7"
rails-version: "5"
- name: "Ruby 2.6 & Rails 5"
ruby-version: "2.6"
rails-version: "5"
- name: "Ruby 2.5 & Rails 5"
ruby-version: "2.5"
rails-version: "5"
- name: "Ruby 2.7 & Rails 5.1"
ruby-version: "2.7"
rails-version: "5.1"
- name: "Ruby 2.6 & Rails 5.1"
ruby-version: "2.6"
rails-version: "5.1"
- name: "Ruby 2.5 & Rails 5.1"
ruby-version: "2.5"
rails-version: "5.1"
- name: "Ruby 2.7 & Rails 5.0"
ruby-version: "2.7"
rails-version: "5.0"
- name: "Ruby 2.6 & Rails 5.0"
ruby-version: "2.6"
rails-version: "5.0"
- name: "Ruby 2.5 & Rails 5.0"
ruby-version: "2.5"
rails-version: "5.0"
- name: "Ruby 2.4 & Rails 4.2"
ruby-version: "2.4"
rails-version: "4.2"
bundler_version: 1
- name: "Ruby 2.3 & Rails 4.1"
ruby-version: "2.3"
rails-version: "4.1"
bundler_version: 1
env:
BUNDLE_GEMFILE: gemfiles/rails${{ matrix.rails-version }}.gemfile
DISPLAY: ":99.0"
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
rubygems: ${{ (matrix.ruby_version < '2.6' && 'default') || 'latest' }}
bundler: ${{ matrix.bundler_version }}
bundler-cache: true
- name: Test
run: bundle exec rake test
app:
name: "App: Rails ${{ matrix.rails-version }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ruby-version: "2.7"
rails-version: "7"
- ruby-version: "2.7"
rails-version: "7.0"
- ruby-version: "2.7"
rails-version: "6"
- ruby-version: "2.7"
rails-version: "6.0"
- ruby-version: "2.7"
rails-version: "5"
- ruby-version: "2.7"
rails-version: "5.1"
- ruby-version: "2.7"
rails-version: "5.0"
- ruby-version: "2.4"
rails-version: "4.2"
- ruby-version: "2.3"
rails-version: "4.1"
steps:
- uses: actions/checkout@v4
- name: Test
run: |
docker-compose run --rm ruby-${{ matrix.ruby-version }}-rails-${{ matrix.rails-version }}