Skip to content

Commit

Permalink
feat: init github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Robino <[email protected]>
  • Loading branch information
StephaneRob committed Apr 7, 2020
1 parent af4f6d0 commit a0c40e7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
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] }}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Ancestry

![](https://github.com/StephaneRob/ancestry-ecto/workflows/tests/badge.svg)

_WIP_

## Installation
Expand Down Expand Up @@ -107,7 +109,6 @@ MyModel.descendants(model)
- [ ] adopt
- [ ] restrict


## License

This package is available as open source under the terms of the [MIT License](LICENSE.md).

0 comments on commit a0c40e7

Please sign in to comment.