-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stéphane Robino <[email protected]>
- Loading branch information
1 parent
af4f6d0
commit a0c40e7
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: tests | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: elixir:1.9.1-slim | ||
|
||
services: | ||
postgres: | ||
image: postgres:11.5-alpine | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_USER: ancestry | ||
POSTGRES_DB: ancestry_test | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install Dependencies | ||
run: | | ||
mix local.rebar --force | ||
mix local.hex --force | ||
mix deps.get | ||
- name: Run Tests | ||
run: mix coveralls | ||
env: | ||
DB_USERNAME: ancestry | ||
POSTGRES_HOST: postgres | ||
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters