forked from opencensus-beam/opencensus_honeycomb
-
Notifications
You must be signed in to change notification settings - Fork 7
70 lines (68 loc) · 2 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
name: Elixir CI
on:
push:
branches: [trunk]
pull_request:
branches: [trunk]
jobs:
build:
runs-on: ubuntu-latest
name: Elixir ${{matrix.elixir}} on OTP ${{matrix.otp}}
strategy:
matrix:
# https://github.com/garthk/opentelemetry_honeycomb/issues/3
otp: [21.3, 22.3]
elixir: [1.8, 1.9]
steps:
- uses: actions/checkout@v1.0.0
- uses: gleam-lang/setup-erlang@v1.0.0
with:
otp-version: ${{matrix.otp}}
- uses: actions/setup-elixir@v1.2.0
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Cache deps
uses: actions/cache@v1.1.2
env:
cache-name: deps
with:
path: deps
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ env.cache-name }}-${{ hashFiles('mix.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ env.cache-name }}-
- name: Cache _build
uses: actions/cache@v1.1.2
env:
cache-name: _build
with:
path: _build
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ env.cache-name }}-${{ hashFiles('mix.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ env.cache-name }}-
- name: mix deps.get
run: |
mix deps.get
mix deps.unlock --unused
mix deps.clean --unused
git diff --exit-code mix.lock
- name: mix compile (dev)
run: |
mix deps.compile
mix compile
- name: mix compile (test)
run: |
mix deps.compile
mix compile
env:
MIX_ENV: test
- name: mix test
run: mix coveralls --trace
- name: mix format
run: |
mix format
git diff --exit-code mix.lock
- name: mix credo
run: mix credo --strict
- run: mix docs
- run: mix dialyzer