-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (52 loc) · 1.21 KB
/
elixir.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Elixir CI
on: push
jobs:
test:
runs-on: ubuntu-latest
container:
image: elixir:1.9.1-slim
env:
MIX_ENV: test
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@v1
- name: Install Dependencies
run: |
cd hippo-backend
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
run: |
cd hippo-backend
mix test
env:
DB_HOST: postgres
DB_PASS: postgres
DB_USER: postgres
credo:
runs-on: ubuntu-latest
container:
image: elixir:1.9.1-slim
env:
MIX_ENV: dev
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: |
cd hippo-backend
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Credo
run: |
cd hippo-backend
mix credo --strict