-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (51 loc) · 1.63 KB
/
ci.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
on: push
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres:11
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports: ['5433:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports: ['6379:6379']
options: --entrypoint redis-server
minio:
# fixme: let's not depend on external unofficial image
image: lazybit/minio
ports:
- 9000:9000
env:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: active_storage_test
options: --name=minio --health-cmd "curl http://localhost:9000/minio/health/live"
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test
REDIS_URL: redis://localhost:6379/0
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: mfinelli/setup-imagemagick@v1
- name: Install Ubuntu dependencies
run: sudo apt-get -y install poppler-data poppler-utils ffmpeg mupdf-tools
- name: Check identify
run: identify --version
#- run: wget https://dl.min.io/client/mc/release/linux-amd64/mc
#- run: chmod +x ./mc
#- run: ./mc alias set minio http://127.0.0.1:9000 root active_storage_test
#- run: ./mc mb --ignore-existing minio/active_storage_test
- uses: erlef/setup-beam@v1
with:
otp-version: '24'
elixir-version: '1.12'
- run: FROM_UMBRELLA=true mix deps.get
- run: mix test.all