Skip to content

dm-4157 refactor #origin_display_name #356

dm-4157 refactor #origin_display_name

dm-4157 refactor #origin_display_name #356

Workflow file for this run

# This workflow uses actions that are not certified by GitHub. They are
# provided by a third-party and are governed by separate terms of service,
# privacy policy, and support documentation.
#
# This workflow will install a prebuilt Ruby version, install dependencies, and
# run tests and linters.
name: "Ruby 2.7 CI"
on:
push:
branches: ['master', 'ci-migration', 'ci-migration-cv', 'ci-migration-en', 'ci-migration-pd', 'ci-migration-bj']
pull_request:
branches: ['master']
jobs:
build:
name: rspec
runs-on: ubuntu-latest
env:
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
REDIS_URL: redis://localhost:6379/0
HOSTNAME: "http://localhost:3200"
GOOGLE_TEST_API_KEY: ${{ secrets.GOOGLE_TEST_API_KEY }}
services:
postgres:
image: postgres:11-alpine
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_DB: rails_test
POSTGRES_USER: rails
POSTGRES_PASSWORD: password
redis:
image: redis
ports: ["6379:6379"]
options: --entrypoint redis-server
env:
REDIS_HOST: redis_test
REDIS_PORT: 6379
REDIS_DB_ID: 0
selenium:
image: selenium/standalone-chrome:latest
ports: ["4444:4444"]
steps:
- uses: actions/checkout@v3
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install PostgreSQL
run: sudo apt-get -yqq install libpq-dev
- name: Run bundle install
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Setup Database
run: bin/rails db:drop db:create db:schema:load
- name: Check ChromeDriver status
run: |
curl http://localhost:4444/wd/hub/status # <-- Check ChromeDriver status
- name: Build and test with rspec
run: bundle exec rspec