-
Notifications
You must be signed in to change notification settings - Fork 5
71 lines (60 loc) · 1.84 KB
/
elixir.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
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Elixir CI
on:
- push
jobs:
build:
runs-on: ubuntu-20.04
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
elixir:
- "1.11"
- "1.12"
- "1.13"
- "1.14"
otp:
- "23"
- "24"
- "25"
exclude:
- elixir: "1.11"
otp: "25"
- elixir: "1.12"
otp: "25"
steps:
- uses: actions/checkout@v4
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Cache Dependencies
uses: actions/cache@v3
id: cache-deps
with:
path: deps
key: deps-${{ env.MIX_ENV }}-v${{ matrix.elixir }}-otp-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
deps-${{ env.MIX_ENV }}-v${{ matrix.elixir }}-otp-${{ matrix.otp }}-
- name: Cache Dialyzer PLTs
uses: actions/cache@v3
with:
path: priv/plts
key: plts-${{ env.MIX_ENV }}-v${{ matrix.elixir }}-otp-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
plts-v${{ matrix.elixir }}-otp-${{ matrix.otp }}-
- name: Install Dependencies
run: mix deps.get
- name: Check Formatting
run: mix format --check-formatted
- name: Run Tests
run: mix test --trace
- name: Check Typespec
run: mix dialyzer --halt-exit-status
- name: Build Code Coverage Report
run: mix coveralls.json
- name: Upload Code Coverage Report
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cover/excoveralls.json