Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosteiner committed Jan 5, 2024
1 parent 591ee7d commit 992197c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ jobs:
- name: migrate
run: docker-compose --file docker-compose.ci.yml run e2e_target bin/rails db:drop db:create db:migrate

- name: bundle
run: docker-compose --file docker-compose.ci.yml run e2e_test bundle install

- name: bin/check
run: docker-compose --file docker-compose.ci.yml run e2e_test bin/check

Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ USER rails:rails

RUN gem install standardrb ruby-lsp

### === test === ###
FROM base AS test

RUN bundle install && \
bundle exec bootsnap precompile --gemfile

COPY . .

RUN bundle exec bootsnap precompile app/ lib/

### === build === ###
FROM base AS build

Expand Down
5 changes: 1 addition & 4 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ services:
e2e_test:
build:
context: .
target: development
target: test
image: ghcr.io/diegosteiner/heimv-test
volumes:
- .:/rails
- bundle:/usr/local/bundle
environment:
APP_HOST: "e2e_test"
E2E_TARGET_HOST: "e2e_target:3002"
Expand Down

0 comments on commit 992197c

Please sign in to comment.