-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.19 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: "ReqCH CI"
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
MIX_ENV: test
jobs:
test:
services:
clickhouse:
image: clickhouse/clickhouse-server:24.10
ports:
- "8123:8123"
- "9000:9000"
strategy:
matrix:
include:
- otp_version: "25.3"
elixir_version: "1.14"
- otp_version: "27.1.2"
elixir_version: "1.17"
runs-on: ubuntu-latest
name: test
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir_version }}
- run: mix deps.get
- run: mix deps.compile
- name: Run tests
run: mix test --warnings-as-errors
- name: Compile once again but without optional deps
run: mix compile --force --warnings-as-errors --no-optional-deps
format:
runs-on: ubuntu-latest
name: mix format
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: "27.1.2"
elixir-version: "1.17"
- run: mix format --check-formatted