Skip to content

Commit 27ce2fb

Browse files
committed
Updated CI/CD.
1 parent f4290fe commit 27ce2fb

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed

Diff for: .github/workflows/cicd.yml

+33-8
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,20 @@ on:
99

1010
jobs:
1111

12-
build:
13-
name: Build on OTP ${{ matrix.otp_version }} / ${{ matrix.os }}
12+
builds:
13+
name: Erlang ${{ matrix.otp_version }} build
1414
runs-on: ubuntu-latest
1515

1616
strategy:
1717
matrix:
18-
# otp_version: [19, 20] Removed due to an incompatibility with rebar3_lfe
19-
otp_version: [21, 22, 23, 24, 25, 26]
20-
os: [ubuntu-latest]
21-
22-
container:
23-
image: erlang:${{ matrix.otp_version }}
18+
otp_version: ['24', '25', '26']
2419

2520
steps:
2621
- uses: actions/checkout@v4
22+
- uses: erlef/setup-beam@v1
23+
with:
24+
otp-version: ${{ matrix.otp_version }}
25+
rebar3-version: '3.22'
2726
- name: Check rebar3 Version
2827
run: DEBUG=1 rebar3 --version
2928
- name: Compile
@@ -35,3 +34,29 @@ jobs:
3534
run: rebar3 as test eunit
3635
- name: Run Tests (ltest runner)
3736
run: make check-runner-ltest
37+
38+
old-builds:
39+
name: Erlang ${{ matrix.otp_version }} build (old)
40+
runs-on: ubuntu-20.04
41+
42+
strategy:
43+
matrix:
44+
otp_version: ['21', '22', '23']
45+
46+
steps:
47+
- uses: actions/checkout@v4
48+
- uses: erlef/setup-beam@v1
49+
with:
50+
otp-version: ${{ matrix.otp_version }}
51+
rebar3-version: '3.15'
52+
- name: Check rebar3 Version
53+
run: DEBUG=1 rebar3 --version
54+
- name: Compile
55+
run: rebar3 compile
56+
#- name: Xref Check
57+
# continue-on-error: true
58+
# run: rebar3 xref
59+
- name: Run Tests
60+
run: rebar3 as test eunit
61+
- name: Run Tests (ltest runner)
62+
run: make check-runner-ltest

0 commit comments

Comments
 (0)