-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (40 loc) · 952 Bytes
/
test.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
name: Tests
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
env:
MIX_ENV: test
CI: "true"
AUTH_USER: admin
AUTH_PASS: admin
DATABASE_PASS: postgres
DATABASE_USER: postgres
DATABASE_HOST: localhost
services:
postgres:
image: postgres:12.2-alpine
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: utility_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: '25'
elixir-version: '1.14.2'
- run: mix deps.get
- run: mix compile --force --warnings-as-errors
- run: mix test