Add redis to ci.yml

This commit is contained in:
Eugene Burmakin 2024-07-27 13:40:52 +02:00
parent 9f3d496a5c
commit 44da5adbda
2 changed files with 10 additions and 2 deletions

View file

@ -19,6 +19,11 @@ jobs:
- 5432:5432
options: --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis
ports:
- 6379:6379
steps:
- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y google-chrome-stable curl libjemalloc2 libvips postgresql-client libpq-dev
@ -47,7 +52,10 @@ jobs:
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432
run: bin/rails db:setup spec
REDIS_URL: redis://localhost:6379/1
run: |
bin/rails db:setup
bin/rails spec
- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4

View file

@ -1 +1 @@
ruby-3.2.3
3.2.3