-
Notifications
You must be signed in to change notification settings - Fork 14
74 lines (66 loc) · 1.81 KB
/
elixir.yml
File metadata and controls
74 lines (66 loc) · 1.81 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Elixir CI
on:
push:
branches: [master]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
name: mix test (OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})
strategy:
fail-fast: false
matrix:
otp: [25.x, 26.x, 27.x, 28.x]
elixir: [1.18.x]
steps:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Install CA certificates
run: sudo apt-get update && sudo apt-get install -y ca-certificates
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix deps.compile
- name: Compile
run: mix compile --warnings-as-errors
- name: Run Tests
run: mix test --trace
format:
runs-on: ubuntu-latest
container:
image: elixir:1.18-slim
steps:
- uses: actions/checkout@v4.2.2
- name: Install CA certificates
run: apt-get update && apt-get install -y ca-certificates
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix deps.compile
- name: Check Format
run: mix format --check-formatted --dry-run
credo:
runs-on: ubuntu-latest
container:
image: elixir:1.18-slim
steps:
- uses: actions/checkout@v4.2.2
- name: Install CA certificates
run: apt-get update && apt-get install -y ca-certificates
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix deps.compile
- name: Run Credo
run: mix credo --strict