Skip to content

Commit 9783d74

Browse files
takaokoujiclaude
andcommitted
Add Docker services for Rails 7.1-8.1 testing
Expand docker-compose.yml to include services for all supported Rails versions from the CI matrix: Services added: - rails-7.1: Rails 7.1.6 - rails-7.2: Rails 7.2.3 - rails-8.0: Rails 8.0.4 - rails-8.1: Rails 8.1.2 Updated services: - rails-6.1: 6.1.7 → 6.1.7.10 - rails-7.0: 7.0.4 → 7.0.10 - shell: default Rails version 6.1.7 → 8.1.2 Usage: docker-compose run rails-7.1 docker-compose run rails-7.2 docker-compose run rails-8.0 docker-compose run rails-8.1 This matches the expanded CI matrix and enables local testing across all supported Rails versions. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 3fbf28b commit 9783d74

1 file changed

Lines changed: 38 additions & 6 deletions

File tree

docker-compose.yml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,60 @@ services:
1111
stdin_open: true
1212
tty: true
1313

14-
# Rails 6.1.7
14+
# Rails 6.1.7.10
1515
rails-6.1:
1616
<<: *test-base
1717
container_name: jsonapi-rails-6.1
1818
environment:
19-
- RAILS_VERSION=6.1.7
19+
- RAILS_VERSION=6.1.7.10
2020
command: bash -c "bundle update && bundle exec rake test"
2121

22-
# Rails 7.0.4
22+
# Rails 7.0.10
2323
rails-7.0:
2424
<<: *test-base
2525
container_name: jsonapi-rails-7.0
2626
environment:
27-
- RAILS_VERSION=7.0.4
27+
- RAILS_VERSION=7.0.10
2828
command: bash -c "bundle update && bundle exec rake test"
2929

30-
# Interactive shell for debugging (defaults to Rails 6.1)
30+
# Rails 7.1.6
31+
rails-7.1:
32+
<<: *test-base
33+
container_name: jsonapi-rails-7.1
34+
environment:
35+
- RAILS_VERSION=7.1.6
36+
command: bash -c "bundle update && bundle exec rake test"
37+
38+
# Rails 7.2.3
39+
rails-7.2:
40+
<<: *test-base
41+
container_name: jsonapi-rails-7.2
42+
environment:
43+
- RAILS_VERSION=7.2.3
44+
command: bash -c "bundle update && bundle exec rake test"
45+
46+
# Rails 8.0.4
47+
rails-8.0:
48+
<<: *test-base
49+
container_name: jsonapi-rails-8.0
50+
environment:
51+
- RAILS_VERSION=8.0.4
52+
command: bash -c "bundle update && bundle exec rake test"
53+
54+
# Rails 8.1.2
55+
rails-8.1:
56+
<<: *test-base
57+
container_name: jsonapi-rails-8.1
58+
environment:
59+
- RAILS_VERSION=8.1.2
60+
command: bash -c "bundle update && bundle exec rake test"
61+
62+
# Interactive shell for debugging (defaults to Rails 8.1)
3163
shell:
3264
<<: *test-base
3365
container_name: jsonapi-shell
3466
environment:
35-
- RAILS_VERSION=${RAILS_VERSION:-6.1.7}
67+
- RAILS_VERSION=${RAILS_VERSION:-8.1.2}
3668
command: /bin/bash
3769

3870
volumes:

0 commit comments

Comments
 (0)