-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1.21 KB
/
build.yml
File metadata and controls
46 lines (38 loc) · 1.21 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
name: build
on: push
jobs:
test:
runs-on: ${{ matrix.os.runner }}
name: ${{ matrix.os.name }} / OTP ${{matrix.beam.otp}} / Elixir ${{matrix.beam.elixir}}
strategy:
matrix:
beam:
- { otp: '25.0.4', elixir: '1.14.0' }
- { otp: '25.0.4', elixir: '1.13.4' }
os:
- name: Linux
runner: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.beam.otp }}
elixir-version: ${{ matrix.beam.elixir }}
version-type: strict
- name: Retrieve Mix Dependencies Cache
uses: actions/cache@v3
id: mix-cache
with:
path: deps
key: ${{ runner.os }}-${{ matrix.beam.otp }}-${{ matrix.beam.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Install Mix dependencies
if: steps.mix-cache.outputs.cache-hit != 'true'
run: mix deps.get
- name: mix format --check-formatted
run: mix format --check-formatted
- name: mix credo
run: mix credo
- name: mix dialyzer
run: mix dialyzer
- name: mix test
run: mix test