File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on : push
4+
5+ env :
6+ MIX_ENV : test
7+ OTP_VER : ' 26.1'
8+ ELIXIR_VER : ' 1.16.1'
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ # set fetch-depth to 0 for "git describe --tags" to work
17+ fetch-depth : 0
18+ - name : Setup Erlang/Elixir
19+ uses : erlef/setup-beam@v1
20+ with :
21+ otp-version : ${{ env.OTP_VER }}
22+ elixir-version : ${{ env.ELIXIR_VER }}
23+ version-type : strict
24+
25+ - name : Cache plt
26+ uses : actions/cache@v4
27+ with :
28+ path : |
29+ ~/.mix
30+ _build/dev
31+ _build/test
32+ !_build/dev/lib
33+ !_build/test/lib
34+ key : plt_erlang-${{ env.OTP_VER }}_elixir-${{ env.ELIXIR_VER }}
35+ restore-keys : plt_erlang-${{ env.OTP_VER }}_elixir-${{ env.ELIXIR_VER }}
36+
37+ - name : Get dependencies
38+ run : mix deps.get
39+
40+ - name : Compile
41+ run : mix compile
42+
43+ - name : Test
44+ run : mix test
45+
46+ - name : Credo
47+ run : mix credo --ignore todo
48+
49+ - name : Run dialyzer
50+ run : mix dialyzer
51+
52+ - name : Build docs
53+ run : mix docs
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments