forked from supabase/realtime
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (45 loc) · 1.21 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
58
name: CI
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
test:
name: OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }}
defaults:
run:
working-directory: ./server
strategy:
matrix:
platform: [ubuntu-18.04]
otp: [23.x]
elixir: [1.11.x]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Postgres
run: docker-compose -f ../docker-compose.db.yml up -d
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Cache Mix
uses: actions/cache@v1
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
# - name: Compile with warnings
# run: mix compile --warnings-as-errors
# - name: Run formatter
# run: mix format --check-formatted
# - name: Run Credo
# run: mix credo
- name: Run tests
run: mix test