Skip to content

Commit

Permalink
add elixir actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zven21 committed May 9, 2020
1 parent 5690ed1 commit 220c27c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ jobs:
build:

runs-on: ubuntu-latest

services:
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v2
- name: Setup elixir
Expand All @@ -22,3 +30,5 @@ jobs:
run: mix deps.get
- name: Run Tests
run: mix test
env:
DB_HOST: postgres
2 changes: 1 addition & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ config :mipha, Mipha.Repo,
username: "postgres",
password: "postgres",
database: "mipha_test",
hostname: "postgres",
hostname: System.get_env("DB_HOST") || "localhost",
pool: Ecto.Adapters.SQL.Sandbox

0 comments on commit 220c27c

Please sign in to comment.