Skip to content

update redis connection #186

update redis connection

update redis connection #186

Workflow file for this run

name: CI
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: postgres
POSTGRES_HOST: localhost
RAILS_ENV: test
on:
push:
branches: [ '*/*' ]
jobs:
test-and-lint:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Bundle install
run: |
gem install bundler:2.3.3
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Setup Database
run: |
bundle exec rails db:setup
env:
RAILS_ENV: test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
- name: Run Rubocop
run: bundle exec rubocop
- name: Run RSpec
run: COVERAGE=true bundle exec rspec