Skip to content

Update cable adapter to use Redis #41

Update cable adapter to use Redis

Update cable adapter to use Redis #41

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:18
env:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
--health-timeout=5s
--health-retries=5
redis:
image: redis:7
ports:
- 6379:6379
options: >-
--health-cmd="redis-cli ping"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
DATABASE_URL: postgres://postgres@localhost:5432/spree_test
REDIS_URL: redis://localhost:6379/0
RAILS_ENV: test
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Prepare database
run: bin/rails db:prepare
- name: Run tests
run: bundle exec rspec
- name: Brakeman security scan
run: bundle exec brakeman --no-pager -q
- name: Bundle audit
run: bundle exec bundle-audit check --update