From 44da5adbdac5229d875504de796073199ea6d7ca Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sat, 27 Jul 2024 13:40:52 +0200 Subject: [PATCH] Add redis to ci.yml --- .github/workflows/ci.yml | 10 +++++++++- .ruby-version | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61eb641c..4c44dd97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.ruby-version b/.ruby-version index ab96aa90..b347b11e 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -ruby-3.2.3 +3.2.3