-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (35 loc) · 907 Bytes
/
ci.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
name: Build
on:
push:
branches:
- '*'
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest]
otp-version: [23, 24, 25, 26]
runs-on: ${{ matrix.platform }}
container:
image: erlang:${{ matrix.otp-version }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache Dialyzer PLTs
uses: actions/cache@v3
with:
path: |
~/.cache/rebar3/rebar3_*_plt
_build/**/*_plt
key: ${{ runner.os }}-otp${{ matrix.otp-version }}-dialyzer-${{ hashFiles('rebar.config') }}
restore-keys: |
${{ runner.os }}-otp${{ matrix.otp-version }}-dialyzer-
- name: Compile
run: rebar3 do compile
- name: Analyze
run: rebar3 do xref, dialyzer
- name: Test
run: rebar3 do eunit, ct