Skip to content

EN-7354 add openai_request.module_type to allow to work with differen… #2160

EN-7354 add openai_request.module_type to allow to work with differen…

EN-7354 add openai_request.module_type to allow to work with differen… #2160

Workflow file for this run

# @see https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
# @see https://www.pibit.nl/github/actions/rails/postgres/rspec/tutorial/example/2019/09/23/github-actions-with-rails-postgres-and-rspec/
name: Ruby
on:
push:
branches-ignore:
- master
- staging
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: mdillon/postgis: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
redis:
image: redis
options: --entrypoint redis-server
ports: ['6379:6379']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.0
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Setup Database
run: |
cp config/database.yml.github-actions config/database.yml
bundle exec rake db:drop db:create db:migrate
env:
RAILS_ENV: test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
- name: Run tests
env:
RAILS_ENV: test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
REDIS_URL: redis://redis:6379
run: bundle exec rake