forked from webmachine/webmachine
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.04 KB
/
build-test.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
name: Build/Test
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
otp_version: [25, 24]
rebar3_version: ["3.20"]
os: ["ubuntu-latest"]
include:
- otp_version: 23
rebar3_version: "3.20"
os: "ubuntu-20.04"
- otp_version: 22
rebar3_version: "3.16"
os: "ubuntu-20.04"
- otp_version: 21
rebar3_version: "3.15"
os: "ubuntu-20.04"
- otp_version: 20
rebar3_version: "3.15"
os: "ubuntu-20.04"
fail-fast: false
max-parallel: 2
runs-on: ["${{ matrix.os }}"]
name: "OTP${{ matrix.otp_version}}, rebar3 v${{ matrix.rebar3_version }}"
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
install-rebar: true
install-hex: true
rebar3-version: ${{ matrix.rebar3_version }}
- name: Compile
run: rebar3 compile
- name: Run tests
run: rebar3 eunit