-
Notifications
You must be signed in to change notification settings - Fork 22
35 lines (33 loc) · 826 Bytes
/
main.yml
File metadata and controls
35 lines (33 loc) · 826 Bytes
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
name: CI
on: [push]
jobs:
test:
strategy:
matrix:
elixir_version: [1.17, 1.16, 1.15, 1.14, 1.13]
runs-on: ubuntu-latest
container:
image: elixir:${{ matrix.elixir_version }}
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ecto_network_test
ports:
- 5432:5432
steps:
- uses: actions/checkout@v1
- name: Install dependencies
env:
LOCKFILE: mix.lock
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run all tests
env:
LOCKFILE: mix.lock
DATABASE_URL: "ecto://postgres:postgres@postgres/ecto_network_test"
run: mix test