philomena/.github/workflows/elixir.yml

45 lines
1 KiB
YAML
Raw Normal View History

name: Philomena Build
on: push
jobs:
build:
runs-on: ubuntu-latest
container:
2020-05-27 23:25:20 +02:00
image: elixir:1.10.3
services:
db:
image: postgres:latest
ports: ['5432:5432']
env:
POSTGRES_PASSWORD: 'postgres'
POSTGRES_USER: 'postgres'
POSTGRES_DB: 'philomena_test'
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
2020-05-27 23:25:20 +02:00
redis:
image: redis:5.0.9
ports: ['6379:6379']
steps:
- uses: actions/checkout@v1
- name: Install Ubuntu Dependencies
run: |
apt-get update
apt-get -yqq install libpq-dev postgresql-client
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
env:
PGUSER: 'postgres'
PGPASSWORD: 'postgres'
PGDATABASE: 'philomena_test'
PGPORT: 5432
PGHOST: db
run: mix test