-
Notifications
You must be signed in to change notification settings - Fork 82
78 lines (70 loc) · 1.73 KB
/
test.yaml
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
71
72
73
74
75
76
77
78
name: Run Tests
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
# Supported versions is rather complex:
#
# ubuntu-18.04: OTP_VERSION=17.0 - 25.3
# ubuntu-20.04: OTP_VERSION=21.0 - 27
# ubuntu-22.04: OTP_VERSION=24.2 - 27
# ubuntu-24.04: OTP_VERSION=24.3 - 27
#
# OTP-26) REBAR3_VERSION="3.22.1"
# OTP-25) REBAR3_VERSION="3.22.1"
# OTP-24) REBAR3_VERSION="3.16.1"
# OTP-23) REBAR3_VERSION="3.16.1"
# OTP-22) REBAR3_VERSION="3.16.1"
# OTP-21) REBAR3_VERSION="3.15.2"
# OTP-20) REBAR3_VERSION="3.15.2"
# OTP-19) REBAR3_VERSION="3.15.2"
# OTP-18) REBAR3_VERSION="3.11.1"
# OTP-17) REBAR3_VERSION="3.10.0"
test:
runs-on: ubuntu-20.04
name: OTP ${{matrix.otp}}
env:
emacs: 27.1
strategy:
matrix:
- otp: "22.3.4.9"
rebar3: "3.16.1"
- otp: "23.3.4.5"
rebar3: "3.16.1"
- otp: "24.3.3"
rebar3: "3.16.1"
- otp: "25.3.3"
rebar3: "3.22.1"
- otp: "26.5.3"
rebar3: "3.22.1"
- otp: "27.3.3"
rebar3: "3.22.1"
steps:
- name: Install Emacs
uses: purcell/setup-emacs@master
with:
version: ${{env.emacs}}
- name: Install Erlang
id: install_erlang
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
rebar3-version: ${{matrix.rebar3}}
install-hex: false
- name: Add Erlang to Path
run: |
echo "ERL_PATH=/usr/lib/erlang" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Compile
run: make
- name: Test
run: make test