Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,26 @@ jobs:
name: spec
env:
RAILS_ENV: test
DB_HOST: 127.0.0.1
services:
db:
image: registry.opensuse.org/opensuse/mariadb:latest
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: >-
--health-cmd="mariadb-admin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Prepare spec
run: |
sudo systemctl start mysql.service
wget -nv http://sphinxsearch.com/files/dicts/en.pak
bundle exec rake dev:bootstrap --trace
bundle exec bin/rake webdrivers:chromedriver:update
Expand Down
2 changes: 2 additions & 0 deletions config/database.yml.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<%
if ENV['CONTAINER']
host = 'db'
elsif ENV['DB_HOST']
host = ENV['DB_HOST']
end
%>

Expand Down