-
-
Notifications
You must be signed in to change notification settings - Fork 102
67 lines (57 loc) · 1.31 KB
/
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
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
# install:
# - sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: OTP-${{matrix.otp}}, OS-${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-20.04"
rebar3: ["3.18.0"]
otp:
- "25.1"
- "24.3"
- "23.3"
- "22.3"
include:
- otp: "21.3"
rebar3: "3.15.2"
os: "ubuntu-20.04"
env:
SHELL: /bin/sh # needed for erlexec
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
rebar3-version: ${{matrix.rebar3}}
- name: compile
run: rebar3 compile
- name: xref
run: rebar3 xref
- name: eunit
run: rebar3 eunit
- name: ct
run: rebar3 ct
- name: dialyzer
run: rebar3 dialyzer
- name: proper
run: rebar3 proper
- name: Upload test logs artifact
uses: actions/upload-artifact@v4
if: failure()
with:
name: test_logs_otp-${{matrix.otp}}
path: |
_build/test/logs/*
!_build/test/logs/ct_run*/datadir