Skip to content

Commit d88fabf

Browse files
committed
Add rails 7.2 to test suite
1 parent 844f09b commit d88fabf

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

meta_request/Dockerfile-rails-7.2

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM ruby:3.1-alpine
2+
3+
RUN apk add --update --no-cache \
4+
build-base \
5+
curl-dev \
6+
git \
7+
nodejs \
8+
shared-mime-info \
9+
sqlite-dev \
10+
tzdata \
11+
yaml-dev \
12+
yarn \
13+
zlib-dev
14+
15+
RUN mkdir /app /gem
16+
WORKDIR /app
17+
18+
RUN gem update --system 3.5.7
19+
RUN bundle config force_ruby_platform true
20+
RUN gem install rails -v 7.2.1.1
21+
RUN rails new .
22+
23+
COPY . /gem
24+
RUN bundle add meta_request --path /gem
25+
RUN bundle install
26+
27+
COPY res/routes.rb /app/config/
28+
COPY res/dummy_controller.rb /app/app/controllers/
29+
COPY res/dummy /app/app/views/dummy
30+
COPY res/meta_request_test.rb /app/test/integration/
31+
32+
RUN bundle exec rails db:migrate
33+
34+
ENV PARALLEL_WORKERS 1
35+
36+
CMD ["bin/rake"]

meta_request/docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ services:
2525
build:
2626
context: .
2727
dockerfile: Dockerfile-rails-7.1
28+
test-rails-7.2:
29+
build:
30+
context: .
31+
dockerfile: Dockerfile-rails-7.2

0 commit comments

Comments
 (0)